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

hwmon: (sht15) Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Krzysztof Kozlowski and committed by
Guenter Roeck
9c40723e 9c2cbcec

+1 -1
+1 -1
drivers/hwmon/sht15.c
··· 1074 1074 return 0; 1075 1075 } 1076 1076 1077 - static struct platform_device_id sht15_device_ids[] = { 1077 + static const struct platform_device_id sht15_device_ids[] = { 1078 1078 { "sht10", sht10 }, 1079 1079 { "sht11", sht11 }, 1080 1080 { "sht15", sht15 },