Krzysztof Kozlowski
297eaaa6d0
regulator: s2mps11: Simplify expression used in BUILD_BUG_ON
...
Following BUILD_BUG_ON using a variable fails for some of the compilers
and optimization levels (reported for gcc 4.9):
var = ARRAY_SIZE(s2mps15_regulators);
BUILD_BUG_ON(S2MPS_REGULATOR_MAX < var);
Fix this by using ARRAY_SIZE directly.
Additionally add missing BUILD_BUG_ON check for S2MPS15 device (the
check ensures that internal arrays are big enough to hold data for all
of regulators on all devices).
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-02-18 13:34:26 +00:00
..
2015-07-17 12:42:48 +01:00
2015-05-01 17:44:55 +01:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2015-10-02 17:53:24 +01:00
2015-08-30 12:21:01 +01:00
2015-11-04 11:19:37 +00:00
2015-10-16 15:48:39 +01:00
2015-04-14 17:29:55 -07:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2015-12-23 00:05:31 +00:00
2015-09-14 19:48:34 +01:00
2016-01-12 18:26:07 +00:00
2015-12-22 23:59:57 +00:00
2015-12-22 23:59:57 +00:00
2015-12-22 23:59:57 +00:00
2015-12-22 23:59:57 +00:00
2015-12-22 23:59:57 +00:00
2015-12-22 23:59:57 +00:00
2013-08-06 17:46:15 +01:00
2015-12-22 23:59:57 +00:00
2015-07-13 19:11:24 +01:00
2014-10-20 16:21:29 +02:00
2015-02-24 17:16:14 +09:00
2015-11-17 18:54:07 +00:00
2014-12-14 16:10:09 -08:00
2015-07-31 18:15:21 +01:00
2014-12-14 16:10:09 -08:00
2015-09-19 07:54:20 -07:00
2015-04-19 13:23:07 +01:00
2014-10-20 16:21:29 +02:00
2015-01-08 20:15:45 +00:00
2015-07-14 18:53:01 +01:00
2015-08-30 14:39:48 +01:00
2016-01-15 12:14:47 -08:00
2015-11-30 11:32:52 +00:00
2015-12-23 12:12:46 +00:00
2015-07-14 18:53:01 +01:00
2015-07-14 18:53:01 +01:00
2015-06-02 15:35:17 +01:00
2015-12-23 00:01:23 +00:00
2015-12-23 00:01:23 +00:00
2015-08-30 14:39:48 +01:00
2016-01-12 18:26:10 +00:00
2015-07-14 18:53:01 +01:00
2015-01-05 20:10:13 +00:00
2015-07-14 18:53:01 +01:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2014-12-05 11:14:37 +00:00
2015-08-30 14:39:48 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-04-27 18:57:57 +01:00
2015-05-20 19:09:51 +01:00
2015-08-21 09:07:45 -07:00
2015-06-16 14:12:26 -04:00
2014-11-26 18:58:14 +00:00
2014-06-09 20:50:35 +01:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2015-12-18 12:14:27 +00:00
2015-07-24 12:30:49 +01:00
2014-12-24 12:41:05 +00:00
2015-09-17 12:14:12 +01:00
2015-12-16 19:22:42 +00:00
2015-09-21 14:16:09 -07:00
2014-10-20 16:21:29 +02:00
2013-12-02 17:58:58 +00:00
2015-08-30 14:39:48 +01:00
2015-12-01 13:18:15 +00:00
2015-11-20 18:06:15 +00:00
2015-12-12 22:34:08 +00:00
2015-12-08 18:21:06 +00:00
2015-09-21 14:11:18 -07:00
2015-04-08 12:22:55 +01:00
2015-12-16 12:29:54 +00:00
2015-07-24 18:29:45 +01:00
2014-10-20 16:21:29 +02:00
2015-07-21 17:11:30 +01:00
2014-10-20 12:23:59 +01:00
2014-12-24 12:54:56 +00:00
2014-12-14 16:10:09 -08:00
2016-02-18 13:34:26 +00:00
2014-12-14 16:10:09 -08:00
2014-12-02 12:22:39 +00:00
2015-03-21 01:05:56 +00:00
2014-12-14 16:10:09 -08:00
2015-11-18 13:19:47 +00:00
2014-10-20 16:21:29 +02:00
2015-10-28 10:30:17 +09:00
2015-07-23 15:58:33 +01:00
2015-07-14 18:53:01 +01:00
2015-07-14 18:53:01 +01:00
2015-09-21 10:13:17 -07:00
2015-12-01 19:58:58 +00:00
2014-12-14 16:10:09 -08:00
2014-09-10 12:02:48 +01:00
2015-11-25 12:25:26 +00:00
2015-03-16 11:41:16 +00:00
2014-10-20 16:21:29 +02:00
2014-10-20 16:21:29 +02:00
2014-12-14 16:10:09 -08:00
2015-09-19 07:55:12 -07:00
2014-10-20 16:21:29 +02:00
2016-01-12 18:26:12 +00:00
2015-12-23 00:00:00 +00:00
2016-01-12 18:26:12 +00:00
2015-12-23 00:00:00 +00:00
2015-12-23 00:00:00 +00:00
2015-12-23 00:00:00 +00:00