mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
HID: intel-ish-hid: constify device_type structure
Declare device_type structure as const as it is only stored in the type field of a device structure. This field is of type const, so add const to the declaration of device_type structure. File size before: drivers/hid/intel-ish-hid/ishtp/bus.o text data bss dec hex filename 4260 336 16 4612 1204 hid/intel-ish-hid/ishtp/bus.o File size after: drivers/hid/intel-ish-hid/ishtp/bus.o text data bss dec hex filename 4324 272 16 4612 1204 hid/intel-ish-hid/ishtp/bus.o Signed-off-by: Bhumika Goyal <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
291e9e3f69
commit
12be9f7b58
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ static void ishtp_cl_dev_release(struct device *dev)
|
|||
kfree(to_ishtp_cl_device(dev));
|
||||
}
|
||||
|
||||
static struct device_type ishtp_cl_device_type = {
|
||||
static const struct device_type ishtp_cl_device_type = {
|
||||
.release = ishtp_cl_dev_release,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue