Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dad89ad0 authored by Antonio Ospite's avatar Antonio Ospite Committed by Jiri Kosina
Browse files

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: default avatarAntonio Ospite <ao2@ao2.it>
Acked-by: default avatarFrank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent a85d67b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;