Dmitry Osipenko
c9398455b0
power: supply: core: Fix parsing of battery chemistry/technology
...
The power_supply_get_battery_info() fails if device-chemistry property
is missing in a device-tree because error variable is propagated to the
final return of the function, fix it.
Fixes: 4eef766b7d4d ("power: supply: core: Parse battery chemistry/technology")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2021-08-20 18:57:56 +02:00
..
2021-04-02 14:14:58 +02:00
2019-06-19 17:09:55 +02:00
2021-07-16 15:14:30 +02:00
2021-07-16 15:14:30 +02:00
2021-08-13 17:21:57 +02:00
2021-07-16 15:14:30 +02:00
2021-07-16 15:14:30 +02:00
2021-07-16 15:14:30 +02:00
2021-06-30 00:14:55 +02:00
2021-01-14 23:39:43 +01:00
2021-04-20 16:18:08 +02:00
2019-05-30 11:29:19 -07:00
2020-01-14 01:00:41 +01:00
2021-06-04 14:12:42 +02:00
2021-04-28 15:43:58 -07:00
2021-08-13 16:31:02 +02:00
2021-08-05 18:54:52 +02:00
2020-05-28 19:02:59 +02:00
2020-05-10 02:35:49 +02:00
2020-10-20 10:56:34 -07:00
2021-03-21 21:29:26 +01:00
2021-03-21 21:29:26 +01:00
2021-04-20 16:18:08 +02:00
2020-07-28 02:07:35 +02:00
2020-10-03 22:17:50 +02:00
2021-06-30 00:07:34 +02:00
2020-10-03 22:17:50 +02:00
2021-08-13 18:38:17 +02:00
2020-11-29 23:06:03 +01:00
2021-04-05 17:51:21 +02:00
2020-10-04 01:54:35 +02:00
2021-06-29 23:57:10 +02:00
2020-11-30 02:18:49 +01:00
2021-06-04 14:28:31 +02:00
2021-06-04 14:36:17 +02:00
2021-07-16 15:54:34 +02:00
2020-08-23 17:36:59 -05:00
2021-07-16 16:00:35 +02:00
2020-07-27 00:05:56 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-01-28 01:31:42 +01:00
2021-01-16 12:36:26 +01:00
2021-03-22 15:05:41 +01:00
2019-06-19 17:09:55 +02:00
2021-04-08 14:35:19 +02:00
2020-10-03 22:17:50 +02:00
2020-08-27 21:13:23 +02:00
2020-12-30 00:42:46 +01:00
2020-01-17 02:13:00 +01:00
2020-04-10 15:36:22 -07:00
2021-08-16 17:57:10 +02:00
2020-08-26 17:25:45 +02:00
2019-06-19 17:09:55 +02:00
2021-03-22 14:54:24 +01:00
2019-04-10 00:39:01 +02:00
2021-03-23 15:22:40 +01:00
2021-01-13 22:11:43 +01:00
2021-08-13 18:50:16 +02:00
2021-03-22 15:11:22 +01:00
2021-01-12 23:23:49 +01:00
2020-08-23 17:36:59 -05:00
2021-04-02 14:12:52 +02:00
2020-06-19 19:58:23 +02:00
2021-04-20 16:18:08 +02:00
2021-01-12 23:09:45 +01:00
2021-06-04 13:11:37 +02:00
2021-08-17 15:33:52 +02:00
2019-12-19 01:13:26 +01:00
2018-08-30 00:18:10 +02:00
2020-05-26 10:41:52 +01:00
2021-08-13 18:37:49 +02:00
2020-05-10 18:56:30 +02:00
2019-05-30 11:26:32 -07:00
2019-12-19 01:07:53 +01:00
2019-05-30 11:29:22 -07:00
2019-06-19 17:09:55 +02:00
2021-08-20 18:57:56 +02:00
2021-01-12 23:00:32 +01:00
2019-05-30 11:29:54 -07:00
2021-01-13 22:11:44 +01:00
2019-05-30 11:29:54 -07:00
2021-08-06 23:36:12 +02:00
2021-08-13 18:38:17 +02:00
2021-06-04 12:30:50 +02:00
2020-10-03 22:17:50 +02:00
2020-04-10 15:36:22 -07:00
2021-04-08 14:36:08 +02:00
2021-08-06 23:48:51 +02:00
2021-04-02 14:19:25 +02:00
2021-04-02 14:19:26 +02:00
2021-08-05 17:57:25 +02:00
2021-05-13 18:24:22 +02:00
2021-08-16 17:57:10 +02:00
2021-05-13 18:26:07 +02:00
2021-06-03 20:53:54 +02:00
2020-10-09 01:02:30 +02:00
2019-06-19 17:09:55 +02:00
2021-03-22 14:54:24 +01:00
2021-03-22 14:54:24 +01:00
2020-03-11 23:20:32 +01:00
2019-05-21 10:50:45 +02:00
2020-10-01 00:18:05 +02:00
2020-07-31 14:33:56 +02:00
2021-01-13 22:25:07 +01:00
2019-06-19 17:09:55 +02:00
2020-11-30 02:46:23 +01:00
2020-08-23 17:36:59 -05:00
2021-03-15 00:08:07 +01:00