[PATCH] pinctrl: qcom: add get_direction function

Linus Walleij linus.walleij at linaro.org
Wed Feb 22 07:49:49 PST 2017


On Sat, Feb 11, 2017 at 12:25 AM, Stephen Boyd <sboyd at codeaurora.org> wrote:
> On 02/10/2017 03:21 PM, Timur Tabi wrote:

>> +     return val & BIT(g->oe_bit) ? 0 : 1;
>
> Maybe we can use the macros GPIOF_DIR_IN and GPIOF_DIR_OUT here instead?

Actually no. The GPIOF* #defines are for the consumer side of GPIO,
not the driver side. We actually just use 0/1 in drivers.

So I merged this v1 version.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list