Commit 0f773547 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e44f54b
...@@ -173,7 +173,7 @@ static int usbatm_atm_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __us ...@@ -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_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 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, .dev_close = usbatm_atm_dev_close,
.open = usbatm_atm_open, .open = usbatm_atm_open,
.close = usbatm_atm_close, .close = usbatm_atm_close,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment