[PATCH 1/2] HID: uclogic: fix coding style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix minor coding style violations in the hid-uclogic driver.

Signed-off-by: Nikolai Kondrashov <spbnick@xxxxxxxxx>
---

This should apply to Jiri's uc-logic branch.

 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 107aa9f..fe36303 100644
--- a/drivers/hid/hid-uclogic.c
+++ b/drivers/hid/hid-uclogic.c
@@ -343,26 +343,23 @@ static __u8 wp8060u_rdesc_fixed[] = {
 };
 
 static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc,
-		unsigned int *rsize)
+					unsigned int *rsize)
 {
 	switch (hdev->product) {
 	case USB_DEVICE_ID_UCLOGIC_TABLET_WP4030U:
-		if (*rsize == WPXXXXU_RDESC_ORIG_SIZE)
-		{
+		if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) {
 			rdesc = wp4030u_rdesc_fixed;
 			*rsize = sizeof(wp4030u_rdesc_fixed);
 		}
 		break;
 	case USB_DEVICE_ID_UCLOGIC_TABLET_WP5540U:
-		if (*rsize == WPXXXXU_RDESC_ORIG_SIZE)
-		{
+		if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) {
 			rdesc = wp5540u_rdesc_fixed;
 			*rsize = sizeof(wp5540u_rdesc_fixed);
 		}
 		break;
 	case USB_DEVICE_ID_UCLOGIC_TABLET_WP8060U:
-		if (*rsize == WPXXXXU_RDESC_ORIG_SIZE)
-		{
+		if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) {
 			rdesc = wp8060u_rdesc_fixed;
 			*rsize = sizeof(wp8060u_rdesc_fixed);
 		}
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux