summaryrefslogtreecommitdiff
path: root/drivers/atm/he.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-09 12:19:15 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-10 08:43:50 +0300
commit46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841 (patch)
treef866f5cdee6e320ab8d9f63c986b1191ad8030a7 /drivers/atm/he.c
parentd78d6776bc958b16b9a8883278f36d62e3145409 (diff)
downloadlinux-46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841.tar.xz
atm: make atmdev_ops const
Make these structures const as they are either passed to the function atm_dev_register having the corresponding argument as const or stored in the ops field of a atm_dev structure, which is also const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/he.c')
-rw-r--r--drivers/atm/he.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index 8f6156d475d1..e58538c29377 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -161,7 +161,7 @@ static unsigned int clocktab[] = {
CLK_LOW
};
-static struct atmdev_ops he_ops =
+static const struct atmdev_ops he_ops =
{
.open = he_open,
.close = he_close,