diff options
Diffstat (limited to 'drivers/input/touchscreen')
23 files changed, 1731 insertions, 78 deletions
diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index e1d8003d01f8..58917525126e 100644 --- a/drivers/input/touchscreen/Kconfig +++ b/drivers/input/touchscreen/Kconfig | |||
| @@ -295,6 +295,19 @@ config TOUCHSCREEN_FUJITSU | |||
| 295 | To compile this driver as a module, choose M here: the | 295 | To compile this driver as a module, choose M here: the |
| 296 | module will be called fujitsu-ts. | 296 | module will be called fujitsu-ts. |
| 297 | 297 | ||
| 298 | config TOUCHSCREEN_GOODIX | ||
| 299 | tristate "Goodix I2C touchscreen" | ||
| 300 | depends on I2C && ACPI | ||
| 301 | help | ||
| 302 | Say Y here if you have the Goodix touchscreen (such as one | ||
| 303 | installed in Onda v975w tablets) connected to your | ||
| 304 | system. | ||
| 305 | |||
| 306 | If unsure, say N. | ||
| 307 | |||
| 308 | To compile this driver as a module, choose M here: the | ||
| 309 | module will be called goodix. | ||
| 310 | |||
| 298 | config TOUCHSCREEN_ILI210X | 311 | config TOUCHSCREEN_ILI210X |
| 299 | tristate "Ilitek ILI210X based touchscreen" | 312 | tristate "Ilitek ILI210X based touchscreen" |
| 300 | depends on I2C | 313 | depends on I2C |
| @@ -334,6 +347,18 @@ config TOUCHSCREEN_GUNZE | |||
| 334 | To compile this driver as a module, choose M here: the | 347 | To compile this driver as a module, choose M here: the |
| 335 | module will be called gunze. | 348 | module will be called gunze. |
| 336 | 349 | ||
| 350 | config TOUCHSCREEN_ELAN | ||
| 351 | tristate "Elan eKTH I2C touchscreen" | ||
| 352 | depends on I2C | ||
| 353 | help | ||
| 354 | Say Y here if you have an Elan eKTH I2C touchscreen | ||
| 355 | connected to your system. | ||
| 356 | |||
| 357 | If unsure, say N. | ||
| 358 | |||
| 359 | To compile this driver as a module, choose M here: the | ||
| 360 | module will be called elants_i2c. | ||
| 361 | |||
| 337 | config TOUCHSCREEN_ELO | 362 | config TOUCHSCREEN_ELO |
| 338 | tristate "Elo serial touchscreens" | 363 | tristate "Elo serial touchscreens" |
| 339 | select SERIO | 364 | select SERIO |
diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile index 090e61cc9171..0242fea2102a 100644 --- a/drivers/input/touchscreen/Makefile +++ b/drivers/input/touchscreen/Makefile | |||
| @@ -31,9 +31,11 @@ obj-$(CONFIG_TOUCHSCREEN_EDT_FT5X06) += edt-ft5x06.o | |||
| 31 | obj-$(CONFIG_TOUCHSCREEN_HAMPSHIRE) += hampshire.o | 31 | obj-$(CONFIG_TOUCHSCREEN_HAMPSHIRE) += hampshire.o |
| 32 | obj-$(CONFIG_TOUCHSCREEN_GUNZE) += gunze.o | 32 | obj-$(CONFIG_TOUCHSCREEN_GUNZE) += gunze.o |
| 33 | obj-$(CONFIG_TOUCHSCREEN_EETI) += eeti_ts.o | 33 | obj-$(CONFIG_TOUCHSCREEN_EETI) += eeti_ts.o |
| 34 | obj-$(CONFIG_TOUCHSCREEN_ELAN) += elants_i2c.o | ||
| 34 | obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o | 35 | obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o |
| 35 | obj-$(CONFIG_TOUCHSCREEN_EGALAX) += egalax_ts.o | 36 | obj-$(CONFIG_TOUCHSCREEN_EGALAX) += egalax_ts.o |
| 36 | obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o | 37 | obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o |
| 38 | obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix.o | ||
| 37 | obj-$(CONFIG_TOUCHSCREEN_ILI210X) += ili210x.o | 39 | obj-$(CONFIG_TOUCHSCREEN_ILI210X) += ili210x.o |
| 38 | obj-$(CONFIG_TOUCHSCREEN_INEXIO) += inexio.o | 40 | obj-$(CONFIG_TOUCHSCREEN_INEXIO) += inexio.o |
| 39 | obj-$(CONFIG_TOUCHSCREEN_INTEL_MID) += intel-mid-touch.o | 41 | obj-$(CONFIG_TOUCHSCREEN_INTEL_MID) += intel-mid-touch.o |
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index 523865daa1d3..da4e5bb5e045 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c | |||
| @@ -820,8 +820,7 @@ static int ad7877_remove(struct spi_device *spi) | |||
| 820 | return 0; | 820 | return 0; |
| 821 | } | 821 | } |
| 822 | 822 | ||
| 823 | #ifdef CONFIG_PM_SLEEP | 823 | static int __maybe_unused ad7877_suspend(struct device *dev) |
| 824 | static int ad7877_suspend(struct device *dev) | ||
| 825 | { | 824 | { |
| 826 | struct ad7877 *ts = dev_get_drvdata(dev); | 825 | struct ad7877 *ts = dev_get_drvdata(dev); |
| 827 | 826 | ||
| @@ -830,7 +829,7 @@ static int ad7877_suspend(struct device *dev) | |||
| 830 | return 0; | 829 | return 0; |
| 831 | } | 830 | } |
| 832 | 831 | ||
| 833 | static int ad7877_resume(struct device *dev) | 832 | static int __maybe_unused ad7877_resume(struct device *dev) |
| 834 | { | 833 | { |
| 835 | struct ad7877 *ts = dev_get_drvdata(dev); | 834 | struct ad7877 *ts = dev_get_drvdata(dev); |
| 836 | 835 | ||
| @@ -838,7 +837,6 @@ static int ad7877_resume(struct device *dev) | |||
| 838 | 837 | ||
| 839 | return 0; | 838 | return 0; |
| 840 | } | 839 | } |
| 841 | #endif | ||
| 842 | 840 | ||
| 843 | static SIMPLE_DEV_PM_OPS(ad7877_pm, ad7877_suspend, ad7877_resume); | 841 | static SIMPLE_DEV_PM_OPS(ad7877_pm, ad7877_suspend, ad7877_resume); |
| 844 | 842 | ||
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 1eb9d3c20886..fec66ad80513 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c | |||
| @@ -284,8 +284,7 @@ static void ad7879_close(struct input_dev* input) | |||
| 284 | __ad7879_disable(ts); | 284 | __ad7879_disable(ts); |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | #ifdef CONFIG_PM_SLEEP | 287 | static int __maybe_unused ad7879_suspend(struct device *dev) |
| 288 | static int ad7879_suspend(struct device *dev) | ||
| 289 | { | 288 | { |
| 290 | struct ad7879 *ts = dev_get_drvdata(dev); | 289 | struct ad7879 *ts = dev_get_drvdata(dev); |
| 291 | 290 | ||
| @@ -301,7 +300,7 @@ static int ad7879_suspend(struct device *dev) | |||
| 301 | return 0; | 300 | return 0; |
| 302 | } | 301 | } |
| 303 | 302 | ||
| 304 | static int ad7879_resume(struct device *dev) | 303 | static int __maybe_unused ad7879_resume(struct device *dev) |
| 305 | { | 304 | { |
| 306 | struct ad7879 *ts = dev_get_drvdata(dev); | 305 | struct ad7879 *ts = dev_get_drvdata(dev); |
| 307 | 306 | ||
| @@ -316,7 +315,6 @@ static int ad7879_resume(struct device *dev) | |||
| 316 | 315 | ||
| 317 | return 0; | 316 | return 0; |
| 318 | } | 317 | } |
| 319 | #endif | ||
| 320 | 318 | ||
| 321 | SIMPLE_DEV_PM_OPS(ad7879_pm_ops, ad7879_suspend, ad7879_resume); | 319 | SIMPLE_DEV_PM_OPS(ad7879_pm_ops, ad7879_suspend, ad7879_resume); |
| 322 | EXPORT_SYMBOL(ad7879_pm_ops); | 320 | EXPORT_SYMBOL(ad7879_pm_ops); |
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index e57ba52bf484..e4eb8a6c658f 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
| @@ -883,8 +883,7 @@ static irqreturn_t ads7846_irq(int irq, void *handle) | |||
| 883 | return IRQ_HANDLED; | 883 | return IRQ_HANDLED; |
| 884 | } | 884 | } |
| 885 | 885 | ||
| 886 | #ifdef CONFIG_PM_SLEEP | 886 | static int __maybe_unused ads7846_suspend(struct device *dev) |
| 887 | static int ads7846_suspend(struct device *dev) | ||
| 888 | { | 887 | { |
| 889 | struct ads7846 *ts = dev_get_drvdata(dev); | 888 | struct ads7846 *ts = dev_get_drvdata(dev); |
| 890 | 889 | ||
| @@ -906,7 +905,7 @@ static int ads7846_suspend(struct device *dev) | |||
| 906 | return 0; | 905 | return 0; |
| 907 | } | 906 | } |
| 908 | 907 | ||
| 909 | static int ads7846_resume(struct device *dev) | 908 | static int __maybe_unused ads7846_resume(struct device *dev) |
| 910 | { | 909 | { |
