• Ye Li's avatar
    MLK-16289 pca953x_gpio: Fix build warning · 1b47b1aa
    Ye Li authored
    Fix uild warning below introduced by
    commit: cb20ff23c83b80b4115c8a44ea436cb6b40429f1
    
    drivers/gpio/pca953x_gpio.c: In function ‘pca953x_probe’:
    drivers/gpio/pca953x_gpio.c:325:48: warning: passing argument 3 of
    ‘pca953x_write_regs’ from incompatible pointer type [-Wincompatible-pointer-types]
      ret = pca953x_write_regs(dev, PCA953X_INVERT, &val);
                                                    ^
    drivers/gpio/pca953x_gpio.c:135:12: note: expected ‘u8 * {aka unsigned char *}’
    but argument is of type ‘u8 (*)[5] {aka unsigned char (*)[5]}’
     static int pca953x_write_regs(struct udevice *dev, int reg, u8 *val)
    Signed-off-by: 's avatarYe Li <ye.li@nxp.com>
    Reviewed-by: 's avatarPeng Fan <peng.fan@nxp.com>
    1b47b1aa
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...