Dan Carpenter
ac57245215
leds: mt6323: Fix an off by one bug in probe
...
It should be ">= MT6323_MAX_LEDS" instead of ">". Also "reg" is a u32
so it can't be negative and we can remove the test for negative values.
Fixes: 216ec6cc4c19 ("leds: Add LED support for MT6323 PMIC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
2017-03-23 20:23:57 +01:00
..
2017-03-06 22:06:47 +01:00
2017-03-21 20:13:19 +01:00
2016-01-04 09:57:37 +01:00
2017-03-08 21:10:01 +01:00
2016-11-22 12:07:05 +01:00
2016-09-20 10:22:10 +02:00
2016-03-14 09:22:22 +01:00
2016-01-04 09:57:38 +01:00
2016-01-04 09:57:32 +01:00
2014-10-20 16:20:43 +02:00
2016-01-04 09:57:40 +01:00
2016-01-04 09:57:40 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:32 +01:00
2014-10-20 16:20:43 +02:00
2015-11-03 08:59:09 +01:00
2016-11-23 16:38:01 +01:00
2016-03-14 09:22:22 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:34 +01:00
2015-08-28 14:06:23 +02:00
2014-09-29 10:21:01 -07:00
2017-03-08 21:10:02 +01:00
2016-06-20 09:57:56 +02:00
2016-01-04 09:57:38 +01:00
2016-07-19 13:58:42 +02:00
2016-08-15 14:02:31 +02:00
2017-01-26 21:16:38 +01:00
2016-01-04 09:57:36 +01:00
2015-08-28 14:06:02 +02:00
2016-03-14 09:22:21 +01:00
2016-01-04 09:57:32 +01:00
2015-11-03 08:59:50 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-03-14 09:22:20 +01:00
2016-11-22 12:07:03 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-03-14 09:22:22 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:34 +01:00
2016-03-14 09:22:23 +01:00
2016-01-04 09:57:38 +01:00
2016-11-22 12:07:03 +01:00
2015-11-03 08:59:52 +01:00
2016-11-22 12:07:04 +01:00
2017-03-23 20:23:57 +01:00
2015-11-03 08:59:54 +01:00
2016-11-30 11:10:27 +01:00
2016-11-22 12:07:04 +01:00
2016-01-04 09:57:37 +01:00
2015-11-03 08:59:13 +01:00
2016-12-02 09:31:50 +01:00
2016-11-30 11:10:09 +01:00
2016-11-22 12:07:04 +01:00
2016-08-16 22:37:26 +02:00
2016-06-29 17:33:18 +10:00
2017-01-04 09:37:56 +01:00
2014-10-20 16:20:43 +02:00
2016-01-04 09:57:35 +01:00
2016-03-14 09:22:22 +01:00
2015-11-03 08:59:20 +01:00
2016-04-19 09:03:20 +02:00
2016-01-04 09:57:38 +01:00
2016-01-04 09:57:39 +01:00
2016-04-14 13:08:58 +02:00
2016-01-04 09:57:32 +01:00
2014-03-28 10:54:15 +01:00
2016-03-14 09:22:22 +01:00
2016-01-04 09:57:35 +01:00
2015-11-03 08:59:58 +01:00
2016-05-06 10:22:09 +02:00
2017-03-21 20:13:19 +01:00
2016-11-22 12:07:02 +01:00