diff options
author | Simon Glass <sjg@chromium.org> | 2014-05-20 06:01:35 -0600 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-05-28 10:58:18 +0900 |
commit | 78a36c3ef390f7780840db3b42837e55e002829a (patch) | |
tree | 3a7fb1c08862c798c2066b059ba480b4c6a40ced /include | |
parent | 913702ca397755e06fcc126a063ebbf814ac869b (diff) |
power: Add PMIC_ prefix to CHARGER_EN/DISABLE
This enum should be common across all PMICs rather than having it
independently defined with the same name in multiple places.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/max77693_pmic.h | 2 | ||||
-rw-r--r-- | include/power/max8997_pmic.h | 1 | ||||
-rw-r--r-- | include/power/pmic.h | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/power/max77693_pmic.h b/include/power/max77693_pmic.h index 616d051f178..3d59e5916e5 100644 --- a/include/power/max77693_pmic.h +++ b/include/power/max77693_pmic.h @@ -10,8 +10,6 @@ #include <power/power_chrg.h> -enum {CHARGER_ENABLE, CHARGER_DISABLE}; - #define CHARGER_MIN_CURRENT 200 #define CHARGER_MAX_CURRENT 2000 diff --git a/include/power/max8997_pmic.h b/include/power/max8997_pmic.h index 74c5d543871..728d60afa59 100644 --- a/include/power/max8997_pmic.h +++ b/include/power/max8997_pmic.h @@ -170,7 +170,6 @@ enum { #define SAFEOUT_3_30V 0x03 /* Charger */ -enum {CHARGER_ENABLE, CHARGER_DISABLE}; #define DETBAT (1 << 2) #define MBCICHFCSET (1 << 4) #define MBCHOSTEN (1 << 6) diff --git a/include/power/pmic.h b/include/power/pmic.h index 8f282dd2f29..a62e6c90a5e 100644 --- a/include/power/pmic.h +++ b/include/power/pmic.h @@ -17,6 +17,11 @@ enum { I2C_PMIC, I2C_NUM, }; enum { PMIC_READ, PMIC_WRITE, }; enum { PMIC_SENSOR_BYTE_ORDER_LITTLE, PMIC_SENSOR_BYTE_ORDER_BIG, }; +enum { + PMIC_CHARGER_DISABLE, + PMIC_CHARGER_ENABLE, +}; + struct p_i2c { unsigned char addr; unsigned char *buf; |