Skip to content

Commit

Permalink
HID: sony: Use __u8 * for the buffer in sixaxis_set_operational_usb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonio Ospite authored and Jiri Kosina committed Feb 18, 2015
1 parent a85d67b commit dad89ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-sony.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dad89ad

Please sign in to comment.