On Mon, Feb 04, 2019 at 08:59:50AM +0000, Pankaj Bansal wrote:
> Add support for an MDIO bus multiplexer controlled by a regmap
> device, like an FPGA.

Hi Pankaj

Thanks for adding the binding documentation.

> diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
> index 5805c0b7d60e..0827a700eb31 100644
> --- a/drivers/net/phy/Makefile
> +++ b/drivers/net/phy/Makefile
> @@ -26,6 +26,7 @@ obj-$(CONFIG_MDIO_BCM_IPROC)        += mdio-bcm-iproc.o
>  obj-$(CONFIG_MDIO_BCM_UNIMAC)        += mdio-bcm-unimac.o
>  obj-$(CONFIG_MDIO_BITBANG)   += mdio-bitbang.o
>  obj-$(CONFIG_MDIO_BUS_MUX)   += mdio-mux.o
> +obj-$(CONFIG_MDIO_BUS_MUX_REGMAP)    += mdio-mux-regmap.o
>  obj-$(CONFIG_MDIO_BUS_MUX_BCM_IPROC) += mdio-mux-bcm-iproc.o
>  obj-$(CONFIG_MDIO_BUS_MUX_GPIO)      += mdio-mux-gpio.o
>  obj-$(CONFIG_MDIO_BUS_MUX_MMIOREG) += mdio-mux-mmioreg.o

We try to keep the Makefile sorting in alphabetical order.


> +/**
> + * mdio_mux_regmap_uninit - relinquish the control of MDIO bus muxing using
> + *                       regmap constructs.
> + * @data: address of data allocated by mdio_mux_regmap_init
> + */
> +int mdio_mux_regmap_uninit(void *data)
> +{
> +     struct mdio_mux_regmap_state *s = data;
> +
> +     mdio_mux_uninit(s->mux_handle);
> +
> +     return 0;
> +}

Please make this a void function, since there is nothing to return.

       Andrew

Reply via email to