]> git.baikalelectronics.ru Git - kernel.git/commit
can: constify platform_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 13 Aug 2017 11:11:45 +0000 (16:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 03:12:23 +0000 (20:12 -0700)
commit19234d6ad35619ca8d94baeebd54cd3e44fe7771
tree345685f730b6799906f8d9d76b6d2d3abd808d97
parent7218b028a27e37362906e563eac10096b7cbe7cf
can: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/c_can/c_can_platform.c