aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r--drivers/hid/hid-input-quirks.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
index d1b4f093dcb3..a5e7163158fb 100644
--- a/drivers/hid/hid-input-quirks.c
+++ b/drivers/hid/hid-input-quirks.c
@@ -170,21 +170,6 @@ static int quirk_btc_8193(struct hid_usage *usage, struct hid_input *hidinput,
170 return 1; 170 return 1;
171} 171}
172 172
173static int quirk_sunplus_wdesktop(struct hid_usage *usage,
174 struct hid_input *hidinput, unsigned long **bit, int *max)
175{
176 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER)
177 return 0;
178
179 switch (usage->hid & HID_USAGE) {
180 case 0x2003: map_key_clear(KEY_ZOOMIN); break;
181 case 0x2103: map_key_clear(KEY_ZOOMOUT); break;
182 default:
183 return 0;
184 }
185 return 1;
186}
187
188#define VENDOR_ID_BELKIN 0x1020 173#define VENDOR_ID_BELKIN 0x1020
189#define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006 174#define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006
190 175
@@ -206,9 +191,6 @@ static int quirk_sunplus_wdesktop(struct hid_usage *usage,
206#define VENDOR_ID_PETALYNX 0x18b1 191#define VENDOR_ID_PETALYNX 0x18b1
207#define DEVICE_ID_PETALYNX_MAXTER_REMOTE 0x0037 192#define DEVICE_ID_PETALYNX_MAXTER_REMOTE 0x0037
208 193
209#define VENDOR_ID_SUNPLUS 0x04fc
210#define DEVICE_ID_SUNPLUS_WDESKTOP 0x05d8
211
212static const struct hid_input_blacklist { 194static const struct hid_input_blacklist {
213 __u16 idVendor; 195 __u16 idVendor;
214 __u16 idProduct; 196 __u16 idProduct;
@@ -229,8 +211,6 @@ static const struct hid_input_blacklist {
229 211
230 { VENDOR_ID_PETALYNX, DEVICE_ID_PETALYNX_MAXTER_REMOTE, quirk_petalynx_remote }, 212 { VENDOR_ID_PETALYNX, DEVICE_ID_PETALYNX_MAXTER_REMOTE, quirk_petalynx_remote },
231 213
232 { VENDOR_ID_SUNPLUS, DEVICE_ID_SUNPLUS_WDESKTOP, quirk_sunplus_wdesktop },
233
234 { 0, 0, NULL } 214 { 0, 0, NULL }
235}; 215};
236 216