]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: max77620_wdt: constify platform_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 13 Aug 2017 11:28:28 +0000 (16:58 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 18:40:39 +0000 (20:40 +0200)
commita3735badbf430725833157b7dced676f09d4baf0
tree56e0462447f50a312f6e6d9e71652e6883b8692f
parentc89f67200c9ead1118171600e3bc1f99932e0bb7
watchdog: max77620_wdt: constify platform_device_id

platform_device_id are not supposed to change at runtime. All functions
working with platform_device_id provided by <linux/platform_device.h>
work with const platform_device_id. So mark the non-const structs as
const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/max77620_wdt.c