Linus Walleij 218f1f8b50 gpio: sx150x: use container_of() to get state container
The state container of the sx150x GPIO driver is sometimes
extracted from the gpio_chip exploiting the fact that offsetof()
the struct gpio_chip inside the struct sx150x_chip is 0, so
the container_of() is in practice a noop. However if a member
is added to struct sx150_chip in front of struct gpio_chip, things
will break. Using proper container_of() avoids this problem.

Semantically this is a noop, the compiler will optimize it away,
but syntactically it makes me happier.

Cc: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-10-02 04:19:32 -07:00
..
2014-12-14 16:10:09 -08:00
2015-05-13 10:02:12 +02:00
2015-07-28 09:45:39 +02:00
2015-06-16 11:00:06 +02:00
2015-06-16 11:00:06 +02:00
2015-05-05 17:50:07 +02:00
2015-05-06 15:33:48 +02:00
2014-12-14 16:10:09 -08:00
2015-08-26 14:49:23 +02:00