diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2010-08-23 07:09:00 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-08-23 09:08:42 -0400 |
commit | bd9033ebc15acd05c8df92b5fc7ecc9171d1087e (patch) | |
tree | 6e35a06d4eecd433940d8b557288d16f9b2589b7 /drivers/hid | |
parent | f36ee074d5d563a832fbfc378207739db3a0a205 (diff) |
HID: uclogic: fix coding style
Fix minor coding style violations in the hid-uclogic driver.
Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-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 | } |