summaryrefslogtreecommitdiffstats
path: root/drivers/atm/idt77252.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-08-09 11:19:15 +0200
committerDavid S. Miller2017-08-10 07:43:50 +0200
commit46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841 (patch)
treef866f5cdee6e320ab8d9f63c986b1191ad8030a7 /drivers/atm/idt77252.c
parentnet: dsa: make dsa_switch_ops const (diff)
downloadkernel-qcow2-linux-46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841.tar.gz
kernel-qcow2-linux-46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841.tar.xz
kernel-qcow2-linux-46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841.zip
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/idt77252.c')
-rw-r--r--drivers/atm/idt77252.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index b7a168c46692..47f3c4ae0594 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -134,7 +134,7 @@ static int idt77252_proc_read(struct atm_dev *dev, loff_t * pos,
static void idt77252_softint(struct work_struct *work);
-static struct atmdev_ops idt77252_ops =
+static const struct atmdev_ops idt77252_ops =
{
.dev_close = idt77252_dev_close,
.open = idt77252_open,