HID: sony: Use __u8 * for the buffer in sixaxis_set_operational_usb()
authorAntonio Ospite <ao2@ao2.it>
Mon, 16 Feb 2015 17:12:23 +0000 (18:12 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Feb 2015 20:36:12 +0000 (21:36 +0100)
Use the same type declared in the prototypes of functions that are going
to accept the buffer as parameter.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Acked-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c

index 64f2f51e66987fd1b58b04222b976578e5ab594b..ec542be818d595281835dbfbc9bec22a751703d2 100644 (file)
@@ -1134,7 +1134,7 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev)
        int ret;
        const int buf_size =
                max(SIXAXIS_REPORT_0xF2_SIZE, SIXAXIS_REPORT_0xF5_SIZE);
-       char *buf = kmalloc(buf_size, GFP_KERNEL);
+       __u8 *buf = kmalloc(buf_size, GFP_KERNEL);
 
        if (!buf)
                return -ENOMEM;