]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Input: constify device_type structures
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 24 Jan 2017 18:33:55 +0000 (10:33 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 24 Jan 2017 20:38:49 +0000 (12:38 -0800)
commitf719315b52b56c34d31c51c1926cea33a89cc9af
tree517cc25152f11a5338d26e8397f3378d0a18ba93
parent0cce284537fb42d9c28b9b31038ffc9b464555f5
Input: constify device_type structures

Declare device_type structures as const as they are only stored in the
type field of a device structure. This field is of type const, so add
const to declaration of device_type structures.

File size before:
   text    data     bss     dec     hex filename
  17184    1344      80   18608    48b0 drivers/input/input.o

File size after:
   text    data     bss     dec     hex filename
  17248    1280      80   18608    48b0 drivers/input/input.o

File size before:
   text    data     bss     dec     hex filename
   2355     384       8    2747     abb drivers/input/rmi4/rmi_bus.o

File size after:
   text    data     bss     dec     hex filename
   2483     264       8    2755     ac3 drivers/input/rmi4/rmi_bus.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c
drivers/input/rmi4/rmi_bus.c