diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2017-01-15 14:51:12 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-15 15:08:46 -0800 |
commit | de901cc31d151c4c855346c29fb61eaf5ffac3ad (patch) | |
tree | 1e2f984b9858ab3957dd955b1138b3165fb3a7c5 /include/linux/i2c | |
parent | 08fea55e37f58371bffc5336a59e55d1f155955a (diff) | |
download | op-kernel-dev-de901cc31d151c4c855346c29fb61eaf5ffac3ad.zip op-kernel-dev-de901cc31d151c4c855346c29fb61eaf5ffac3ad.tar.gz |
Input: mpr121 - switch to device tree probe
This driver currently only supports legacy platform data probe. This
change adds device tree support and gets rid of platform data probe code
since no one is actually using mpr121 platform data in the mainline.
The device tree property parsing code is based on the work of
atmel_captouch driver.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/mpr121_touchkey.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/i2c/mpr121_touchkey.h b/include/linux/i2c/mpr121_touchkey.h deleted file mode 100644 index f0bcc38..0000000 --- a/include/linux/i2c/mpr121_touchkey.h +++ /dev/null @@ -1,20 +0,0 @@ -/* Header file for Freescale MPR121 Capacitive Touch Sensor */ - -#ifndef _MPR121_TOUCHKEY_H -#define _MPR121_TOUCHKEY_H - -/** - * struct mpr121_platform_data - platform data for mpr121 sensor - * @keymap: pointer to array of KEY_* values representing keymap - * @keymap_size: size of the keymap - * @wakeup: configure the button as a wake-up source - * @vdd_uv: VDD voltage in uV - */ -struct mpr121_platform_data { - const unsigned short *keymap; - unsigned int keymap_size; - bool wakeup; - int vdd_uv; -}; - -#endif /* _MPR121_TOUCHKEY_H */ |