Commit c6f8d706 authored by Ondrej Zary's avatar Ondrej Zary Committed by Dmitry Torokhov

Input: usbtouchscreen - fix fallout caused by move from drivers/usb

During the move from drivers/usb/input into drivers/input/touchscreen
Kconfig variables were shuffled a bit to use a new namespace
(CONFIG_TOUCHSCREEN) while usbtouchscreen was still using old ones.

Also noticed by Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Signed-off-by: default avatarDaniel Ritz <daniel.ritz@gmx.ch>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 1dfa2812
...@@ -91,7 +91,7 @@ struct usbtouch_usb { ...@@ -91,7 +91,7 @@ struct usbtouch_usb {
}; };
#if defined(CONFIG_USB_TOUCHSCREEN_EGALAX) || defined(CONFIG_USB_TOUCHSCREEN_ETURBO) #if defined(CONFIG_TOUCHSCREEN_USB_EGALAX) || defined(CONFIG_TOUCHSCREEN_USB_ETURBO)
#define MULTI_PACKET #define MULTI_PACKET
#endif #endif
...@@ -113,7 +113,7 @@ enum { ...@@ -113,7 +113,7 @@ enum {
}; };
static struct usb_device_id usbtouch_devices[] = { static struct usb_device_id usbtouch_devices[] = {
#ifdef CONFIG_USB_TOUCHSCREEN_EGALAX #ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
{USB_DEVICE(0x3823, 0x0001), .driver_info = DEVTYPE_EGALAX}, {USB_DEVICE(0x3823, 0x0001), .driver_info = DEVTYPE_EGALAX},
{USB_DEVICE(0x3823, 0x0002), .driver_info = DEVTYPE_EGALAX}, {USB_DEVICE(0x3823, 0x0002), .driver_info = DEVTYPE_EGALAX},
{USB_DEVICE(0x0123, 0x0001), .driver_info = DEVTYPE_EGALAX}, {USB_DEVICE(0x0123, 0x0001), .driver_info = DEVTYPE_EGALAX},
...@@ -123,30 +123,30 @@ static struct usb_device_id usbtouch_devices[] = { ...@@ -123,30 +123,30 @@ static struct usb_device_id usbtouch_devices[] = {
{USB_DEVICE(0x1234, 0x0002), .driver_info = DEVTYPE_EGALAX}, {USB_DEVICE(0x1234, 0x0002), .driver_info = DEVTYPE_EGALAX},
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_PANJIT #ifdef CONFIG_TOUCHSCREEN_USB_PANJIT
{USB_DEVICE(0x134c, 0x0001), .driver_info = DEVTYPE_PANJIT}, {USB_DEVICE(0x134c, 0x0001), .driver_info = DEVTYPE_PANJIT},
{USB_DEVICE(0x134c, 0x0002), .driver_info = DEVTYPE_PANJIT}, {USB_DEVICE(0x134c, 0x0002), .driver_info = DEVTYPE_PANJIT},
{USB_DEVICE(0x134c, 0x0003), .driver_info = DEVTYPE_PANJIT}, {USB_DEVICE(0x134c, 0x0003), .driver_info = DEVTYPE_PANJIT},
{USB_DEVICE(0x134c, 0x0004), .driver_info = DEVTYPE_PANJIT}, {USB_DEVICE(0x134c, 0x0004), .driver_info = DEVTYPE_PANJIT},
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_3M #ifdef CONFIG_TOUCHSCREEN_USB_3M
{USB_DEVICE(0x0596, 0x0001), .driver_info = DEVTYPE_3M}, {USB_DEVICE(0x0596, 0x0001), .driver_info = DEVTYPE_3M},
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_ITM #ifdef CONFIG_TOUCHSCREEN_USB_ITM
{USB_DEVICE(0x0403, 0xf9e9), .driver_info = DEVTYPE_ITM}, {USB_DEVICE(0x0403, 0xf9e9), .driver_info = DEVTYPE_ITM},
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_ETURBO #ifdef CONFIG_TOUCHSCREEN_USB_ETURBO
{USB_DEVICE(0x1234, 0x5678), .driver_info = DEVTYPE_ETURBO}, {USB_DEVICE(0x1234, 0x5678), .driver_info = DEVTYPE_ETURBO},
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_GUNZE #ifdef CONFIG_TOUCHSCREEN_USB_GUNZE
{USB_DEVICE(0x0637, 0x0001), .driver_info = DEVTYPE_GUNZE}, {USB_DEVICE(0x0637, 0x0001), .driver_info = DEVTYPE_GUNZE},
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_DMC_TSC10 #ifdef CONFIG_TOUCHSCREEN_USB_DMC_TSC10
{USB_DEVICE(0x0afa, 0x03e8), .driver_info = DEVTYPE_DMC_TSC10}, {USB_DEVICE(0x0afa, 0x03e8), .driver_info = DEVTYPE_DMC_TSC10},
#endif #endif
...@@ -158,7 +158,7 @@ static struct usb_device_id usbtouch_devices[] = { ...@@ -158,7 +158,7 @@ static struct usb_device_id usbtouch_devices[] = {
* eGalax part * eGalax part
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_EGALAX #ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
#define EGALAX_PKT_TYPE_MASK 0xFE #define EGALAX_PKT_TYPE_MASK 0xFE
#define EGALAX_PKT_TYPE_REPT 0x80 #define EGALAX_PKT_TYPE_REPT 0x80
...@@ -197,7 +197,7 @@ static int egalax_get_pkt_len(unsigned char *buf, int len) ...@@ -197,7 +197,7 @@ static int egalax_get_pkt_len(unsigned char *buf, int len)
/***************************************************************************** /*****************************************************************************
* PanJit Part * PanJit Part
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_PANJIT #ifdef CONFIG_TOUCHSCREEN_USB_PANJIT
static int panjit_read_data(struct usbtouch_usb *dev, unsigned char *pkt) static int panjit_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
{ {
dev->x = ((pkt[2] & 0x0F) << 8) | pkt[1]; dev->x = ((pkt[2] & 0x0F) << 8) | pkt[1];
...@@ -212,7 +212,7 @@ static int panjit_read_data(struct usbtouch_usb *dev, unsigned char *pkt) ...@@ -212,7 +212,7 @@ static int panjit_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
/***************************************************************************** /*****************************************************************************
* 3M/Microtouch Part * 3M/Microtouch Part
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_3M #ifdef CONFIG_TOUCHSCREEN_USB_3M
#define MTOUCHUSB_ASYNC_REPORT 1 #define MTOUCHUSB_ASYNC_REPORT 1
#define MTOUCHUSB_RESET 7 #define MTOUCHUSB_RESET 7
...@@ -262,7 +262,7 @@ static int mtouch_init(struct usbtouch_usb *usbtouch) ...@@ -262,7 +262,7 @@ static int mtouch_init(struct usbtouch_usb *usbtouch)
/***************************************************************************** /*****************************************************************************
* ITM Part * ITM Part
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_ITM #ifdef CONFIG_TOUCHSCREEN_USB_ITM
static int itm_read_data(struct usbtouch_usb *dev, unsigned char *pkt) static int itm_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
{ {
int touch; int touch;
...@@ -296,7 +296,7 @@ static int itm_read_data(struct usbtouch_usb *dev, unsigned char *pkt) ...@@ -296,7 +296,7 @@ static int itm_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
/***************************************************************************** /*****************************************************************************
* eTurboTouch part * eTurboTouch part
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_ETURBO #ifdef CONFIG_TOUCHSCREEN_USB_ETURBO
static int eturbo_read_data(struct usbtouch_usb *dev, unsigned char *pkt) static int eturbo_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
{ {
unsigned int shift; unsigned int shift;
...@@ -327,7 +327,7 @@ static int eturbo_get_pkt_len(unsigned char *buf, int len) ...@@ -327,7 +327,7 @@ static int eturbo_get_pkt_len(unsigned char *buf, int len)
/***************************************************************************** /*****************************************************************************
* Gunze part * Gunze part
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_GUNZE #ifdef CONFIG_TOUCHSCREEN_USB_GUNZE
static int gunze_read_data(struct usbtouch_usb *dev, unsigned char *pkt) static int gunze_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
{ {
if (!(pkt[0] & 0x80) || ((pkt[1] | pkt[2] | pkt[3]) & 0x80)) if (!(pkt[0] & 0x80) || ((pkt[1] | pkt[2] | pkt[3]) & 0x80))
...@@ -348,7 +348,7 @@ static int gunze_read_data(struct usbtouch_usb *dev, unsigned char *pkt) ...@@ -348,7 +348,7 @@ static int gunze_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
* http://www.dmccoltd.com/files/controler/tsc10usb_pi_e.pdf * http://www.dmccoltd.com/files/controler/tsc10usb_pi_e.pdf
* http://www.dmccoltd.com/files/controler/tsc25_usb_e.pdf * http://www.dmccoltd.com/files/controler/tsc25_usb_e.pdf
*/ */
#ifdef CONFIG_USB_TOUCHSCREEN_DMC_TSC10 #ifdef CONFIG_TOUCHSCREEN_USB_DMC_TSC10
/* supported data rates. currently using 130 */ /* supported data rates. currently using 130 */
#define TSC10_RATE_POINT 0x50 #define TSC10_RATE_POINT 0x50
...@@ -419,7 +419,7 @@ static int dmc_tsc10_read_data(struct usbtouch_usb *dev, unsigned char *pkt) ...@@ -419,7 +419,7 @@ static int dmc_tsc10_read_data(struct usbtouch_usb *dev, unsigned char *pkt)
* the different device descriptors * the different device descriptors
*/ */
static struct usbtouch_device_info usbtouch_dev_info[] = { static struct usbtouch_device_info usbtouch_dev_info[] = {
#ifdef CONFIG_USB_TOUCHSCREEN_EGALAX #ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
[DEVTYPE_EGALAX] = { [DEVTYPE_EGALAX] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x07ff, .max_xc = 0x07ff,
...@@ -433,7 +433,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { ...@@ -433,7 +433,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
}, },
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_PANJIT #ifdef CONFIG_TOUCHSCREEN_USB_PANJIT
[DEVTYPE_PANJIT] = { [DEVTYPE_PANJIT] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x0fff, .max_xc = 0x0fff,
...@@ -444,7 +444,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { ...@@ -444,7 +444,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
}, },
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_3M #ifdef CONFIG_TOUCHSCREEN_USB_3M
[DEVTYPE_3M] = { [DEVTYPE_3M] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x4000, .max_xc = 0x4000,
...@@ -456,7 +456,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { ...@@ -456,7 +456,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
}, },
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_ITM #ifdef CONFIG_TOUCHSCREEN_USB_ITM
[DEVTYPE_ITM] = { [DEVTYPE_ITM] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x0fff, .max_xc = 0x0fff,
...@@ -468,7 +468,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { ...@@ -468,7 +468,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
}, },
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_ETURBO #ifdef CONFIG_TOUCHSCREEN_USB_ETURBO
[DEVTYPE_ETURBO] = { [DEVTYPE_ETURBO] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x07ff, .max_xc = 0x07ff,
...@@ -482,7 +482,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { ...@@ -482,7 +482,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
}, },
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_GUNZE #ifdef CONFIG_TOUCHSCREEN_USB_GUNZE
[DEVTYPE_GUNZE] = { [DEVTYPE_GUNZE] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x0fff, .max_xc = 0x0fff,
...@@ -493,7 +493,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { ...@@ -493,7 +493,7 @@ static struct usbtouch_device_info usbtouch_dev_info[] = {
}, },
#endif #endif
#ifdef CONFIG_USB_TOUCHSCREEN_DMC_TSC10 #ifdef CONFIG_TOUCHSCREEN_USB_DMC_TSC10
[DEVTYPE_DMC_TSC10] = { [DEVTYPE_DMC_TSC10] = {
.min_xc = 0x0, .min_xc = 0x0,
.max_xc = 0x03ff, .max_xc = 0x03ff,
......
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