Skip to content

Commit 41a130f

Browse files
goyalbhumikadavem330
authored andcommitted
net: mdio-gpio: make mdiobb_ops const
Make this const as it is only stored in a const field of a mdiobb_ctrl structure. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9449473 commit 41a130f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/mdio-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void mdc_set(struct mdiobb_ctrl *ctrl, int what)
116116
gpiod_set_value(bitbang->mdc, what);
117117
}
118118

119-
static struct mdiobb_ops mdio_gpio_ops = {
119+
static const struct mdiobb_ops mdio_gpio_ops = {
120120
.owner = THIS_MODULE,
121121
.set_mdc = mdc_set,
122122
.set_mdio_dir = mdio_dir,

0 commit comments

Comments
 (0)