OMAPDSS: VENC: fix NULL pointer dereference in DSS2 VENC sysfs debug attr on OMAP4
[zen-stable.git] / include / linux / power / gpio-charger.h
blobde1dfe09a03d71c13930354d7dd3213fcf6fbde2
1 /*
2 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
9 * You should have received a copy of the GNU General Public License along
10 * with this program; if not, write to the Free Software Foundation, Inc.,
11 * 675 Mass Ave, Cambridge, MA 02139, USA.
15 #ifndef __LINUX_POWER_GPIO_CHARGER_H__
16 #define __LINUX_POWER_GPIO_CHARGER_H__
18 #include <linux/power_supply.h>
19 #include <linux/types.h>
21 /**
22 * struct gpio_charger_platform_data - platform_data for gpio_charger devices
23 * @name: Name for the chargers power_supply device
24 * @type: Type of the charger
25 * @gpio: GPIO which is used to indicate the chargers status
26 * @gpio_active_low: Should be set to 1 if the GPIO is active low otherwise 0
27 * @supplied_to: Array of battery names to which this chargers supplies power
28 * @num_supplicants: Number of entries in the supplied_to array
30 struct gpio_charger_platform_data {
31 const char *name;
32 enum power_supply_type type;
34 int gpio;
35 int gpio_active_low;
37 char **supplied_to;
38 size_t num_supplicants;
41 #endif