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
..
2015-09-15 03:05:45 +02:00
2015-09-10 13:29:01 -07:00
2015-09-03 16:55:55 -07:00
2015-09-15 17:06:29 +02:00
2015-08-18 09:08:47 +03:00
2015-09-19 18:57:09 -07:00
2015-08-28 21:09:14 +02:00
2015-09-08 16:48:55 -07:00
2015-09-08 18:19:17 -07:00
2015-09-19 20:17:40 -07:00
2015-09-04 11:35:03 -07:00
2015-09-16 02:17:49 +02:00
2015-09-11 19:11:06 -07:00
2015-09-16 07:53:33 -07:00
2015-09-11 14:23:30 +09:00
2015-09-16 15:47:51 +02:00
2015-09-11 16:21:12 -07:00
2015-08-31 15:49:19 -07:00
2015-09-10 13:29:01 -07:00
2015-10-02 04:19:32 -07:00
2015-09-16 16:53:38 +02:00
2015-09-04 12:02:11 -07:00
2015-09-10 13:29:01 -07:00
2015-09-12 19:43:02 -07:00
2015-09-08 16:16:26 -07:00
2015-08-15 22:10:26 -04:00
2015-09-04 10:07:45 -07:00
2015-09-16 09:16:20 -07:00
2015-09-11 19:17:28 -07:00
2015-09-11 15:21:34 -07:00
2015-09-16 16:53:38 +02:00
2015-09-08 14:35:59 -07:00
2015-09-17 10:02:20 +02:00
2015-09-03 16:41:38 -07:00
2015-09-05 18:11:04 -07:00
2015-09-11 18:15:18 -07:00
2015-09-11 16:42:39 -07:00
2015-09-08 17:22:35 -07:00
2015-08-26 07:11:45 -07:00
2015-09-16 15:47:51 +02:00
2015-09-18 08:01:06 -07:00
2015-09-08 16:33:16 -07:00
2015-09-09 11:17:33 -07:00
2015-09-15 17:06:28 +02:00
2015-09-04 10:07:45 -07:00
2015-09-07 15:27:12 -04:00
2015-09-17 11:49:28 -04:00
2015-09-08 16:16:26 -07:00
2015-09-10 13:29:01 -07:00
2015-09-16 15:47:51 +02:00
2015-09-03 16:01:03 +01:00
2015-09-04 10:07:45 -07:00
2015-09-18 08:11:42 -07:00
2015-09-17 21:41:02 -07:00
2015-09-17 12:25:42 -07:00
2015-08-29 01:46:40 +02:00
2015-09-09 10:55:32 -07:00
2015-09-08 16:48:55 -07:00
2015-09-01 14:48:40 +02:00
2015-09-05 19:37:31 +02:00
2015-09-18 09:28:20 -07:00
2015-09-11 19:00:42 -07:00
2015-09-16 16:53:39 +02:00
2015-09-16 15:47:51 +02:00
2015-08-31 14:45:45 +01:00
2015-09-16 15:47:51 +02:00
2015-09-19 20:04:11 -07:00
2015-09-11 19:00:42 -07:00
2015-09-11 20:06:59 -07:00
2015-09-10 16:21:11 -07:00
2015-09-01 18:46:42 -07:00
2015-09-18 09:28:20 -07:00
2015-09-10 18:19:42 -07:00
2015-09-08 13:32:11 +03:00
2015-09-01 18:46:42 -07:00
2015-09-11 15:12:59 -07:00
2015-09-10 18:19:42 -07:00
2015-09-03 16:27:01 -07:00
2015-09-04 10:22:09 -07:00