summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSyed Rafiuddin <srafiuddin@nvidia.com>2013-01-09 15:40:55 +0530
committerRiham Haidar <rhaidar@nvidia.com>2013-01-16 14:21:59 -0800
commitee69db341633d1de937124366e999ab7df49d7ea (patch)
tree39d729bdfbef4d2c93cdb32e00dde4eef0e2581e /include
parent25f5c2e9c96cfeddcfa8b43aaec38d23c9ecb1c3 (diff)
power: bq2491x: use usb regulator to configure i/p current
use usb regulator to configure the input current limit Change-Id: Ic4233195a4c13f1d571a1f76fa676e1f6b0109e6 Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/191147 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Nilesh Bhoite <nbhoite@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/bq2419x.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/mfd/bq2419x.h b/include/linux/mfd/bq2419x.h
index 405d8a3587f1..86acf8850e25 100644
--- a/include/linux/mfd/bq2419x.h
+++ b/include/linux/mfd/bq2419x.h
@@ -79,12 +79,17 @@ struct bq2419x_regulator_platform_data {
struct bq2419x_charger_platform_data {
int gpio_interrupt;
int gpio_status;
- int usb_in_current_limit;
- int ac_in_current_limit;
unsigned use_mains:1;
unsigned use_usb:1;
void (*update_status)(int, int);
int (*battery_check)(void);
+
+ int regulator_id;
+ int max_charge_volt_mV;
+ int max_charge_current_mA;
+ int charging_term_current_mA;
+ int num_consumer_supplies;
+ struct regulator_consumer_supply *consumer_supplies;
};
struct bq2419x_platform_data {
struct bq2419x_regulator_platform_data *reg_pdata;