• Linus Walleij's avatar
    gpio: mxc: Remove reliance on <linux/gpio.h> · 8d0bd9a5
    Linus Walleij authored
    This is a driver so we should only include <linux/gpio/driver.h>.
    However this driver was using gpio_get_value() to fetch the
    current value of a GPIO used as IRQ line to determine trigger
    direction, so we need a better way than looping over the
    global GPIO numberspace.
    
    Fix this by just calling the .get() function in the GPIO chip,
    as we don't want to end up creating a consumer dependency
    on ourselves.
    
    Cc: Vladimir Zapolskiy <vz@mleia.com>
    Cc: Fabio Estevam <fabio.estevam@nxp.com>
    Acked-by: default avatarShawn Guo <shawnguo@kernel.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    8d0bd9a5
gpio-mxc.c 13.4 KB