Commit 4774f400 authored by Stefan Agner's avatar Stefan Agner Committed by Dmitry Torokhov

Input: ad7879 - move header to platform_data directory

The header file is used by the SPI and I2C variant of the driver.
Therefore, move it to a more generic place under platform_data.
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent cd1480ae
...@@ -279,7 +279,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { ...@@ -279,7 +279,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = {
#endif #endif
#if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879)
#include <linux/spi/ad7879.h> #include <linux/platform_data/ad7879.h>
static const struct ad7879_platform_data bfin_ad7879_ts_info = { static const struct ad7879_platform_data bfin_ad7879_ts_info = {
.model = 7879, /* Model = AD7879 */ .model = 7879, /* Model = AD7879 */
.x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */ .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */
......
...@@ -477,7 +477,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { ...@@ -477,7 +477,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = {
#endif #endif
#if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879)
#include <linux/spi/ad7879.h> #include <linux/platform_data/ad7879.h>
static const struct ad7879_platform_data bfin_ad7879_ts_info = { static const struct ad7879_platform_data bfin_ad7879_ts_info = {
.model = 7879, /* Model = AD7879 */ .model = 7879, /* Model = AD7879 */
.x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */ .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <asm/dpmc.h> #include <asm/dpmc.h>
#if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879)
#include <linux/spi/ad7879.h> #include <linux/platform_data/ad7879.h>
#define LCD_BACKLIGHT_GPIO 0x40 #define LCD_BACKLIGHT_GPIO 0x40
/* TLL6527M uses TLL7UIQ35 / ADI LCD EZ Extender. AD7879 AUX GPIO is used for /* TLL6527M uses TLL7UIQ35 / ADI LCD EZ Extender. AD7879 AUX GPIO is used for
* LCD Backlight Enable * LCD Backlight Enable
......
...@@ -776,7 +776,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { ...@@ -776,7 +776,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = {
#endif #endif
#if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879)
#include <linux/spi/ad7879.h> #include <linux/platform_data/ad7879.h>
static const struct ad7879_platform_data bfin_ad7879_ts_info = { static const struct ad7879_platform_data bfin_ad7879_ts_info = {
.model = 7879, /* Model = AD7879 */ .model = 7879, /* Model = AD7879 */
.x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */ .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */
......
...@@ -521,7 +521,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -521,7 +521,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
#endif /* CONFIG_SPI_BFIN5XX */ #endif /* CONFIG_SPI_BFIN5XX */
#if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879)
#include <linux/spi/ad7879.h> #include <linux/platform_data/ad7879.h>
static const struct ad7879_platform_data bfin_ad7879_ts_info = { static const struct ad7879_platform_data bfin_ad7879_ts_info = {
.model = 7879, /* Model = AD7879 */ .model = 7879, /* Model = AD7879 */
.x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */ .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/spi/ad7879.h> #include <linux/platform_data/ad7879.h>
#include <linux/module.h> #include <linux/module.h>
#include "ad7879.h" #include "ad7879.h"
...@@ -170,10 +170,10 @@ static int ad7879_report(struct ad7879 *ts) ...@@ -170,10 +170,10 @@ static int ad7879_report(struct ad7879 *ts)
* filter. The combination of these two techniques provides a robust * filter. The combination of these two techniques provides a robust
* solution, discarding the spurious noise in the signal and keeping * solution, discarding the spurious noise in the signal and keeping
* only the data of interest. The size of both filters is * only the data of interest. The size of both filters is
* programmable. (dev.platform_data, see linux/spi/ad7879.h) Other * programmable. (dev.platform_data, see linux/platform_data/ad7879.h)
* user-programmable conversion controls include variable acquisition * Other user-programmable conversion controls include variable
* time, and first conversion delay. Up to 16 averages can be taken * acquisition time, and first conversion delay. Up to 16 averages can
* per conversion. * be taken per conversion.
*/ */
if (likely(x && z1)) { if (likely(x && z1)) {
......
/* linux/spi/ad7879.h */ /* linux/platform_data/ad7879.h */
/* Touchscreen characteristics vary between boards and models. The /* Touchscreen characteristics vary between boards and models. The
* platform_data for the device's "struct device" holds this information. * platform_data for the device's "struct device" holds this information.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment