Skip to content

Commit dad89ad

Browse files
ao2Jiri Kosina
authored andcommitted
HID: sony: Use __u8 * for the buffer in sixaxis_set_operational_usb()
Use the same type declared in the prototypes of functions that are going to accept the buffer as parameter. Signed-off-by: Antonio Ospite <[email protected]> Acked-by: Frank Praznik <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent a85d67b commit dad89ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-sony.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev)
11341134
int ret;
11351135
const int buf_size =
11361136
max(SIXAXIS_REPORT_0xF2_SIZE, SIXAXIS_REPORT_0xF5_SIZE);
1137-
char *buf = kmalloc(buf_size, GFP_KERNEL);
1137+
__u8 *buf = kmalloc(buf_size, GFP_KERNEL);
11381138

11391139
if (!buf)
11401140
return -ENOMEM;

0 commit comments

Comments
 (0)