platform/x86: wmi: declare device_type structure as constant
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 28 Oct 2018 06:07:00 +0000 (11:37 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
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 <bhumirks@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/wmi.c