Skip to content
  • 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: default avatarYe Li <ye.li@nxp.com>
    Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
    1b47b1aa