Input: samsung-keypad - constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Wed, 6 May 2015 23:54:56 +0000 (16:54 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 May 2015 23:56:55 +0000 (16:56 -0700)
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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/samsung-keypad.c

index 6b9fdf6cf8e83f017dcdaba0281f8856208c0fc0..43e48dac7687f293bacf3a83831ec28127b97307 100644 (file)
@@ -585,7 +585,7 @@ static const struct of_device_id samsung_keypad_dt_match[] = {
 MODULE_DEVICE_TABLE(of, samsung_keypad_dt_match);
 #endif
 
-static struct platform_device_id samsung_keypad_driver_ids[] = {
+static const struct platform_device_id samsung_keypad_driver_ids[] = {
        {
                .name           = "samsung-keypad",
                .driver_data    = KEYPAD_TYPE_SAMSUNG,