[PATCH linux dev-4.10] leds: pca955x: fix typo

Joel Stanley joel at jms.id.au
Mon Jul 31 18:21:29 AEST 2017


On Mon, Jul 31, 2017 at 5:23 PM, Cédric Le Goater <clg at kaod.org> wrote:
> Spotted by the 01 bot when compiling without OF support :
>
>    drivers/leds/leds-pca955x.c:319:1: note: expected 'struct pca963x_chipdef *' but argument is of type 'struct pca955x_chipdef *'
>     pca955x_pdata_of_init(struct i2c_client *client, struct pca963x_chipdef *chip)
>     ^~~~~~~~~~~~~~~~~~~~~
>    cc1: some warnings being treated as errors
>
> Signed-off-by: Cédric Le Goater <clg at kaod.org>

Thanks, applied to dev-4.10.

Cheers,

Joel

> ---
>  drivers/leds/leds-pca955x.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-openbmc-4.10.git/drivers/leds/leds-pca955x.c
> ===================================================================
> --- linux-openbmc-4.10.git.orig/drivers/leds/leds-pca955x.c
> +++ linux-openbmc-4.10.git/drivers/leds/leds-pca955x.c
> @@ -383,7 +383,7 @@ static const struct of_device_id of_pca9
>  MODULE_DEVICE_TABLE(of, of_pca955x_match);
>  #else
>  static struct pca955x_platform_data *
> -pca955x_pdata_of_init(struct i2c_client *client, struct pca963x_chipdef *chip)
> +pca955x_pdata_of_init(struct i2c_client *client, struct pca955x_chipdef *chip)
>  {
>         return ERR_PTR(-ENODEV);
>  }


More information about the openbmc mailing list