Skip to content

Commit

Permalink
net: mdio-gpio: make mdiobb_ops const
Browse files Browse the repository at this point in the history
Make this const as it is only stored in a const field of a
mdiobb_ctrl structure.

Signed-off-by: Bhumika Goyal <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
goyalbhumika authored and davem330 committed Aug 22, 2017
1 parent 9449473 commit 41a130f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/mdio-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static void mdc_set(struct mdiobb_ctrl *ctrl, int what)
gpiod_set_value(bitbang->mdc, what);
}

static struct mdiobb_ops mdio_gpio_ops = {
static const struct mdiobb_ops mdio_gpio_ops = {
.owner = THIS_MODULE,
.set_mdc = mdc_set,
.set_mdio_dir = mdio_dir,
Expand Down

0 comments on commit 41a130f

Please sign in to comment.