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-21 20:13:19 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:36 +01:00
2016-01-04 09:57:32 +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-01-04 09:57:33 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:37 +01:00
2016-12-02 09:31:50 +01:00
2016-11-30 11:10:09 +01:00
2016-08-16 22:37:26 +02:00
2017-01-04 09:37:56 +01:00
2016-01-04 09:57:35 +01:00
2017-03-21 20:13:19 +01:00