Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41a130f7 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94494733
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,