[PATCH linux dev-4.10] leds: pca955x: fix typo
Cédric Le Goater
clg at kaod.org
Mon Jul 31 17:53:39 AEST 2017
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>
---
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