On Tue, May 31, 2016 at 9:03 PM, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > The commit 9b8e3ec34318 ("gpio: pca953x: Use correct u16 value for register > word write") fixed regression in pca953x_write_regs(). At the same time the > solution introduced a sparse warning: > > drivers/gpio/gpio-pca953x.c:168:39: warning: incorrect type in argument 3 (different base types) > drivers/gpio/gpio-pca953x.c:168:39: expected unsigned short [unsigned] [usertype] value > drivers/gpio/gpio-pca953x.c:168:39: got restricted __le16 [usertype] <noident> > > Fix the code by enforcing the type of i2c_smbus_write_word_data() parameter. > > Cc: Yong Li <sdliyong@xxxxxxxxx> > Cc: Phil Reid <preid@xxxxxxxxxxxxxxxxx> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html