summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2011-10-17 11:02:18 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:00:53 +0200
commitcd574d44e9ff564c2602b45a65dcd07301c103f5 (patch)
treec6a461abd5e0e8e0f14d0b7581a653e5ccd249e4 /include
parent729be001c355df1c52c2309b1d2b20efcc028b9f (diff)
ab5500 mfd:input:misc: Add accessory driver
Add driver for the accessory detection block of the ab5500 PMIC. The common functions from the 8500 accessory driver are moved to abx500-accdet generic driver. This generic driver uses callbacks registerd from the 8500 and 5500 specific driver to work as a accessory driver for a perticluar platform. Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/abx500/ab5500.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ab5500.h b/include/linux/mfd/abx500/ab5500.h
index ad8ffa65132..bf990010048 100644
--- a/include/linux/mfd/abx500/ab5500.h
+++ b/include/linux/mfd/abx500/ab5500.h
@@ -27,6 +27,7 @@ enum ab5500_devid {
AB5500_DEVID_CHARGALG,
AB5500_DEVID_BTEMP,
AB5500_DEVID_TEMPMON,
+ AB5500_DEVID_ACCDET,
AB5500_NUM_DEVICES,
};
@@ -155,6 +156,7 @@ struct ab5500_platform_data {
bool pm_power_off;
struct ab5500_regulator_platform_data *regulator;
struct ab5500_usbgpio_platform_data *usb;
+ struct abx500_accdet_platform_data *accdet;
};
struct ab5500_ponkey_platform_data {