gpio: TS-4800: remove useless bgpio_init flags
authorJulien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Wed, 10 Feb 2016 17:20:34 +0000 (12:20 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 23:20:03 +0000 (00:20 +0100)
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>
drivers/gpio/gpio-ts4800.c

index c4908a45c523efea3a4cb0b5b1d1640a18f1d963..9da79e4a67c5af87aab47f08394655ac7f4f112a 100644 (file)
@@ -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;
This page took 0.024727 seconds and 5 git commands to generate.