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