]> git.baikalelectronics.ru Git - kernel.git/commit
net: 3c509: constify pnp_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 16 Aug 2017 04:55:59 +0000 (10:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 18:10:12 +0000 (11:10 -0700)
commitc40bcdff959dc167bb3efbea20ac152481219e11
treef2da4c21f82fc51024a56a627bc1196278b498ff
parent9bc0275caf0dde8a74241d225a4812dc418f90b9
net: 3c509: constify pnp_device_id

pnp_device_id are not supposed to change at runtime. All functions
working with pnp_device_id provided by <linux/pnp.h> work with
const pnp_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/3com/3c509.c