Re: [PATCH 1/1 linux-next] gpio: use container_of to resolve cs5535_gpio_chip from gpio_chip

From: Linus Walleij
Date: Tue Sep 23 2014 - 11:14:07 EST


On Sun, Sep 14, 2014 at 3:56 PM, Fabian Frederick <fabf@xxxxxxxxx> wrote:

> Use container_of instead of casting first structure member.
>
> Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
> ---
> Compiled but untested.

Patch applied.
The existing code is unintelligible, so thanks a lot.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/