Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 047b2f62 authored by Julien Grossholtz's avatar Julien Grossholtz Committed by Linus Walleij
Browse files

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: 5041e791 ("gpio: add TS-4800 fpga GPIO support")
Signed-off-by: default avatarJulien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 43c54eca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -48,8 +48,7 @@ static int ts4800_gpio_probe(struct platform_device *pdev)

	retval = bgpio_init(chip, &pdev->dev, 2, base_addr + INPUT_REG_OFFSET,
			    base_addr + OUTPUT_REG_OFFSET, NULL,
			    base_addr + DIRECTION_REG_OFFSET, NULL,
			    BGPIOF_BIG_ENDIAN & BGPIOF_BIG_ENDIAN_BYTE_ORDER);
			    base_addr + DIRECTION_REG_OFFSET, NULL, 0);
	if (retval) {
		dev_err(&pdev->dev, "bgpio_init failed\n");
		return retval;