Lee Jones 1768391c36 mfd: tps65911-comparator: Fix an off by one bug
The COMP1 and COMP2 elements are in 0 and 1 respectively so this code is
accessing the wrong elements and one space beyond the end of the array.

The "id" variable is never COMP (0) so that code can be removed.

Fixes: 6851ad3ab346 ("TPS65911: Comparator: Add comparator driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2018-05-16 09:21:48 +01:00
..
2016-11-29 08:21:33 +00:00
2018-01-29 10:59:24 -08:00
2018-01-08 11:03:35 +00:00
2018-05-16 09:21:48 +01:00
2017-07-18 08:27:18 +01:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:04 +01:00
2017-11-29 16:29:36 +00:00
2013-07-31 13:01:29 +01:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00