Skip to content

Commit 511aeaf

Browse files
goyalbhumikadavem330
authored andcommitted
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: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 13ead5c commit 511aeaf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/net/hamradio/baycom_par.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
386386

387387
/* --------------------------------------------------------------------- */
388388

389-
static struct hdlcdrv_ops par96_ops = {
389+
static const struct hdlcdrv_ops par96_ops = {
390390
.drvname = bc_drvname,
391391
.drvinfo = bc_drvinfo,
392392
.open = par96_open,

drivers/net/hamradio/baycom_ser_fdx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
508508

509509
/* --------------------------------------------------------------------- */
510510

511-
static struct hdlcdrv_ops ser12_ops = {
511+
static const struct hdlcdrv_ops ser12_ops = {
512512
.drvname = bc_drvname,
513513
.drvinfo = bc_drvinfo,
514514
.open = ser12_open,

drivers/net/hamradio/baycom_ser_hdx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
542542

543543
/* --------------------------------------------------------------------- */
544544

545-
static struct hdlcdrv_ops ser12_ops = {
545+
static const struct hdlcdrv_ops ser12_ops = {
546546
.drvname = bc_drvname,
547547
.drvinfo = bc_drvinfo,
548548
.open = ser12_open,

0 commit comments

Comments
 (0)