Input: mcs - Add MCS touchkey driver
This adds support for MELPAS MCS5000/MSC5080 touch key controllers. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
committed by
Dmitry Torokhov
parent
866d7d7b4a
commit
312e8e8a9e
@ -16,7 +16,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c/mcs5000_ts.h>
|
||||
#include <linux/i2c/mcs.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/input.h>
|
||||
#include <linux/irq.h>
|
||||
@ -105,7 +105,7 @@ enum mcs5000_ts_read_offset {
|
||||
struct mcs5000_ts_data {
|
||||
struct i2c_client *client;
|
||||
struct input_dev *input_dev;
|
||||
const struct mcs5000_ts_platform_data *platform_data;
|
||||
const struct mcs_platform_data *platform_data;
|
||||
};
|
||||
|
||||
static irqreturn_t mcs5000_ts_interrupt(int irq, void *dev_id)
|
||||
@ -164,7 +164,7 @@ static irqreturn_t mcs5000_ts_interrupt(int irq, void *dev_id)
|
||||
|
||||
static void mcs5000_ts_phys_init(struct mcs5000_ts_data *data)
|
||||
{
|
||||
const struct mcs5000_ts_platform_data *platform_data =
|
||||
const struct mcs_platform_data *platform_data =
|
||||
data->platform_data;
|
||||
struct i2c_client *client = data->client;
|
||||
|
||||
|
Reference in New Issue
Block a user