Skip to contentSkip to conversation

USB: atm: make atmdev_ops const

PATCH New Bhumika Goyal 1 participant 1 message Aug 9, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/usb/atm/usbatm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/atm/usbatm.c +1 -1
index 75a5ff2..8607af7 100644
@@ -173,7 +173,7 @@ struct usbatm_control {
 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,
Signature · 1 line
1.9.1