Dan Carpenter
2f05e1d445
leds: leds-lp5521: return an error code on error in probe()
...
If "buf" wasn't equal to LP5521_REG_R_CURR_DEFAULT the probe fails but
we still return zero. I've changed it to print an error message and
return -EINVAL.
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
2012-12-03 11:16:58 -08:00
..
2012-10-10 20:14:07 +09:00
2012-11-27 14:49:25 -08:00
2012-09-11 18:32:40 +08:00
2012-11-27 14:49:30 -08:00
2012-11-26 14:28:49 -08:00
2012-11-27 14:49:25 -08:00
2012-07-24 07:52:37 +08:00
2012-07-24 07:52:37 +08:00
2012-11-27 14:49:26 -08:00
2012-07-27 08:15:09 +08:00
2012-11-28 15:12:54 -08:00
2012-11-26 14:28:46 -08:00
2012-11-26 14:28:45 -08:00
2012-11-27 14:49:26 -08:00
2012-05-29 16:22:31 -07:00
2012-07-24 07:52:40 +08:00
2012-11-26 14:28:45 -08:00
2012-11-27 14:49:27 -08:00
2012-11-26 14:28:49 -08:00
2012-09-12 15:05:00 +08:00
2012-08-20 14:51:24 -07:00
2012-11-26 14:28:50 -08:00
2012-11-26 14:43:55 -08:00
2012-12-03 11:16:58 -08:00
2012-11-26 14:43:55 -08:00
2012-10-02 09:54:49 -07:00
2012-11-27 14:49:27 -08:00
2012-07-24 15:48:47 +08:00
2012-07-24 07:52:39 +08:00
2012-11-27 14:49:28 -08:00
2012-11-26 14:28:47 -08:00
2012-11-27 14:49:24 -08:00
2012-11-27 14:49:28 -08:00
2012-07-24 07:52:39 +08:00
2012-09-24 19:12:29 +08:00
2012-11-27 14:49:28 -08:00
2012-11-28 15:12:53 -08:00
2012-07-24 07:52:36 +08:00
2012-11-26 14:28:46 -08:00
2012-09-19 17:42:18 +02:00
2012-11-26 14:28:48 -08:00
2012-07-24 07:52:39 +08:00
2012-07-24 07:52:39 +08:00
2012-11-27 14:49:29 -08:00
2012-11-27 14:49:30 -08:00
2012-09-11 18:32:40 +08:00
2012-11-27 14:49:30 -08:00
2012-11-11 12:09:43 -08:00
2012-07-24 07:52:34 +08:00
2012-11-26 14:28:49 -08:00
2012-07-24 07:52:34 +08:00
2012-07-24 07:52:34 +08:00
2012-07-24 07:52:34 +08:00
2012-07-24 07:52:34 +08:00
2012-07-24 07:52:34 +08:00
2012-10-10 20:14:07 +09:00