Commit 511aeaf4 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller

hamradio: baycom: make hdlcdrv_ops const

Make hdlcdrv_ops structures const as they are only passed to
hdlcdrv_register function. The corresponding argument is of type const,
so make the structures const.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 13ead5c4
...@@ -386,7 +386,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ...@@ -386,7 +386,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
static struct hdlcdrv_ops par96_ops = { static const struct hdlcdrv_ops par96_ops = {
.drvname = bc_drvname, .drvname = bc_drvname,
.drvinfo = bc_drvinfo, .drvinfo = bc_drvinfo,
.open = par96_open, .open = par96_open,
......
...@@ -508,7 +508,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ...@@ -508,7 +508,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
static struct hdlcdrv_ops ser12_ops = { static const struct hdlcdrv_ops ser12_ops = {
.drvname = bc_drvname, .drvname = bc_drvname,
.drvinfo = bc_drvinfo, .drvinfo = bc_drvinfo,
.open = ser12_open, .open = ser12_open,
......
...@@ -542,7 +542,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ...@@ -542,7 +542,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
static struct hdlcdrv_ops ser12_ops = { static const struct hdlcdrv_ops ser12_ops = {
.drvname = bc_drvname, .drvname = bc_drvname,
.drvinfo = bc_drvinfo, .drvinfo = bc_drvinfo,
.open = ser12_open, .open = ser12_open,
......
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