]> git.baikalelectronics.ru Git - kernel.git/commit
net: ti: cpsw:: constify platform_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 13 Aug 2017 11:13:18 +0000 (16:43 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 03:12:23 +0000 (20:12 -0700)
commit586d038ade3aaebd05b06f75d5c688e1ef5cdf95
treee5f4ae67aee97bbb288912565fa8f129b66a5aff
parentf17367ec99f127d9e18330a906f8088397df8b86
net: ti: cpsw:: 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/ethernet/ti/cpsw.c