USB: atm: make atmdev_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 9 Aug 2017 09:38:56 +0000 (15:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Aug 2017 18:31:26 +0000 (11:31 -0700)
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>
drivers/usb/atm/usbatm.c

index 75a5ff2f8a0f6cbe141a016349f9d37acc73fd80..8607af758bbd8c52b7841f52f383bd13e66aff87 100644 (file)
@@ -173,7 +173,7 @@ static int usbatm_atm_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __us
 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb);
 static int usbatm_atm_proc_read(struct atm_dev *atm_dev, loff_t *pos, char *page);
 
-static struct atmdev_ops usbatm_atm_devops = {
+static const struct atmdev_ops usbatm_atm_devops = {
        .dev_close      = usbatm_atm_dev_close,
        .open           = usbatm_atm_open,
        .close          = usbatm_atm_close,