diff options
-rw-r--r-- | drivers/hid/hid-uclogic.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/hid/hid-uclogic.c b/drivers/hid/hid-uclogic.c index 107aa9fb07f2..fe36303dfd95 100644 --- a/drivers/hid/hid-uclogic.c +++ b/drivers/hid/hid-uclogic.c | |||
@@ -343,26 +343,23 @@ static __u8 wp8060u_rdesc_fixed[] = { | |||
343 | }; | 343 | }; |
344 | 344 | ||
345 | static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, | 345 | static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, |
346 | unsigned int *rsize) | 346 | unsigned int *rsize) |
347 | { | 347 | { |
348 | switch (hdev->product) { | 348 | switch (hdev->product) { |
349 | case USB_DEVICE_ID_UCLOGIC_TABLET_WP4030U: | 349 | case USB_DEVICE_ID_UCLOGIC_TABLET_WP4030U: |
350 | if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) | 350 | if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) { |
351 | { | ||
352 | rdesc = wp4030u_rdesc_fixed; | 351 | rdesc = wp4030u_rdesc_fixed; |
353 | *rsize = sizeof(wp4030u_rdesc_fixed); | 352 | *rsize = sizeof(wp4030u_rdesc_fixed); |
354 | } | 353 | } |
355 | break; | 354 | break; |
356 | case USB_DEVICE_ID_UCLOGIC_TABLET_WP5540U: | 355 | case USB_DEVICE_ID_UCLOGIC_TABLET_WP5540U: |
357 | if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) | 356 | if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) { |
358 | { | ||
359 | rdesc = wp5540u_rdesc_fixed; | 357 | rdesc = wp5540u_rdesc_fixed; |
360 | *rsize = sizeof(wp5540u_rdesc_fixed); | 358 | *rsize = sizeof(wp5540u_rdesc_fixed); |
361 | } | 359 | } |
362 | break; | 360 | break; |
363 | case USB_DEVICE_ID_UCLOGIC_TABLET_WP8060U: | 361 | case USB_DEVICE_ID_UCLOGIC_TABLET_WP8060U: |
364 | if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) | 362 | if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) { |
365 | { | ||
366 | rdesc = wp8060u_rdesc_fixed; | 363 | rdesc = wp8060u_rdesc_fixed; |
367 | *rsize = sizeof(wp8060u_rdesc_fixed); | 364 | *rsize = sizeof(wp8060u_rdesc_fixed); |
368 | } | 365 | } |