On Wed, Mar 22, 2017 at 3:11 PM, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > + return (reg_val & (1u << (off % BANK_SZ))) ? GPIOF_DIR_IN : GPIOF_DIR_OUT; The GPIOF_DIR_IN/GPIOF_DIR_OUT are part of the consumer API and should not be used inside drivers. I've fixed it up to 1/0 when applying. 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