summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-09 05:38:56 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-10 14:31:26 -0400
commit0f7735477de7e1565949d8bd64aa14547758c3a6 (patch)
treeb971decb556994a0cea6e23ad6baf09fc33ebf26
parent1e44f54b9c5053bf3a48701fc1df3b35ce9c2bcd (diff)
USB: atm: make atmdev_ops const
Make these const as they are only passed to the function atm_dev_register and the corresponding argument is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/atm/usbatm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c
index 75a5ff2f8a0f..8607af758bbd 100644
--- a/drivers/usb/atm/usbatm.c
+++ b/drivers/usb/atm/usbatm.c
@@ -173,7 +173,7 @@ static int usbatm_atm_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __us
173static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb); 173static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb);
174static int usbatm_atm_proc_read(struct atm_dev *atm_dev, loff_t *pos, char *page); 174static int usbatm_atm_proc_read(struct atm_dev *atm_dev, loff_t *pos, char *page);
175 175
176static struct atmdev_ops usbatm_atm_devops = { 176static const struct atmdev_ops usbatm_atm_devops = {
177 .dev_close = usbatm_atm_dev_close, 177 .dev_close = usbatm_atm_dev_close,
178 .open = usbatm_atm_open, 178 .open = usbatm_atm_open,
179 .close = usbatm_atm_close, 179 .close = usbatm_atm_close,