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

gpio: 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: Linus Walleij <linus.walleij@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
f4f79d40 f1fb9c61

+3 -3
+1 -1
drivers/gpio/gpio-mxc.c
··· 131 131 #define GPIO_INT_FALL_EDGE (mxc_gpio_hwdata->fall_edge) 132 132 #define GPIO_INT_BOTH_EDGES 0x4 133 133 134 - static struct platform_device_id mxc_gpio_devtype[] = { 134 + static const struct platform_device_id mxc_gpio_devtype[] = { 135 135 { 136 136 .name = "imx1-gpio", 137 137 .driver_data = IMX1_GPIO,
+1 -1
drivers/gpio/gpio-mxs.c
··· 239 239 return !(dir & mask); 240 240 } 241 241 242 - static struct platform_device_id mxs_gpio_ids[] = { 242 + static const struct platform_device_id mxs_gpio_ids[] = { 243 243 { 244 244 .name = "imx23-gpio", 245 245 .driver_data = IMX23_GPIO,
+1 -1
drivers/gpio/gpio-ts5500.c
··· 440 440 return 0; 441 441 } 442 442 443 - static struct platform_device_id ts5500_dio_ids[] = { 443 + static const struct platform_device_id ts5500_dio_ids[] = { 444 444 { "ts5500-dio1", TS5500_DIO1 }, 445 445 { "ts5500-dio2", TS5500_DIO2 }, 446 446 { "ts5500-dio-lcd", TS5500_LCD },