Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: appletouch - constify usb_device_id

usb_device_id are not supposed to change at runtime. All functions
working with usb_device_id provided by <linux/usb.h> work with
const usb_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Arvind Yadav and committed by
Dmitry Torokhov
a45232d6 81c3d81c

+1 -1
+1 -1
drivers/input/mouse/appletouch.c
··· 125 125 * According to Info.plist Geyser IV is the same as Geyser III.) 126 126 */ 127 127 128 - static struct usb_device_id atp_table[] = { 128 + static const struct usb_device_id atp_table[] = { 129 129 /* PowerBooks Feb 2005, iBooks G4 */ 130 130 ATP_DEVICE(0x020e, fountain_info), /* FOUNTAIN ANSI */ 131 131 ATP_DEVICE(0x020f, fountain_info), /* FOUNTAIN ISO */