]> Git Repo - linux.git/commit
platform/x86: wmi: declare device_type structure as constant
authorBhumika Goyal <[email protected]>
Sun, 28 Oct 2018 06:07:00 +0000 (11:37 +0530)
committerAndy Shevchenko <[email protected]>
Wed, 31 Oct 2018 14:11:39 +0000 (16:11 +0200)
commit69372c1dbdee8cab3c3892eda932c624af59a494
tree3e2f446e214d3c822492da6cfc8b226ffb03264f
parent0252894f53fc2693672308d5453d5076b7516637
platform/x86: wmi: declare device_type structure as constant

The only usage of device_type structure is getting stored as
a reference in the type field of device structure. This type
field is declared const. Therefore, the device_type structure
can never be modified and can be declared as const.

Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
drivers/platform/x86/wmi.c
This page took 0.052396 seconds and 4 git commands to generate.