Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: TS-4800: remove useless bgpio_init flags

No flags are required for bgpio_init in the TS-4800 gpio driver. This
patch set zero instead. The driver will have the same behaviour since
the & operator between the flags already resulted to zero.

Fixes: 5041e791440a ("gpio: add TS-4800 fpga GPIO support")
Signed-off-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Julien Grossholtz and committed by
Linus Walleij
047b2f62 43c54eca

+1 -2
+1 -2
drivers/gpio/gpio-ts4800.c
··· 48 48 49 49 retval = bgpio_init(chip, &pdev->dev, 2, base_addr + INPUT_REG_OFFSET, 50 50 base_addr + OUTPUT_REG_OFFSET, NULL, 51 - base_addr + DIRECTION_REG_OFFSET, NULL, 52 - BGPIOF_BIG_ENDIAN & BGPIOF_BIG_ENDIAN_BYTE_ORDER); 51 + base_addr + DIRECTION_REG_OFFSET, NULL, 0); 53 52 if (retval) { 54 53 dev_err(&pdev->dev, "bgpio_init failed\n"); 55 54 return retval;