Martin Fuzzey b852cca8f0 pmic: allow dump command for non contiguous register maps
Some PMICs (such as the DA9063) have non-contiguous register maps.
Attempting to read the non implemented registers returns an error
rather than a dummy value which causes 'pmic dump' to terminate
prematurely.

Fix this by allowing the PMIC driver to return -ENODATA for such
registers, which will then be displayed as '--' by pmic dump.

Use a single error code rather than any error code so that
we can distinguish between a hardware failure reading the PMIC
and a non implemented register known to the driver.

Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
2020-01-27 19:54:20 -05:00
..
2019-04-22 12:06:39 -04:00
2019-04-22 12:06:39 -04:00
2019-12-15 11:44:19 +08:00
2017-02-08 15:56:28 -05:00
2019-07-24 13:16:29 -04:00
2020-01-10 14:18:26 -05:00
2020-01-17 10:15:49 -05:00
2019-10-31 07:22:53 -04:00
2018-08-11 09:16:08 +02:00
2020-01-07 11:13:26 -05:00
2017-07-03 17:35:28 -04:00
2019-08-11 16:43:41 -04:00
2018-05-23 17:30:05 -04:00
2019-08-11 16:43:41 -04:00
2019-08-22 00:10:09 +02:00
2018-12-04 19:44:57 +01:00
2018-09-25 21:49:18 -04:00
2019-02-19 08:55:43 -05:00
2020-01-07 14:37:50 +01:00
2020-01-07 18:08:21 +01:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-08-26 11:46:27 -04:00
2019-08-11 16:43:41 -04:00
2019-10-06 15:20:53 -04:00
2019-08-11 19:27:41 -04:00
2020-01-21 15:56:15 +01:00
2019-06-21 10:07:11 -04:00
2019-08-11 16:43:41 -04:00
2020-01-21 15:56:15 +01:00
2019-08-11 16:43:41 -04:00
2019-05-04 19:26:49 +02:00
2016-10-06 20:57:42 -04:00
2018-09-28 18:27:33 +02:00
2019-09-04 11:37:19 -05:00
2019-08-11 16:43:41 -04:00
2020-01-07 18:08:21 +01:00
2019-08-11 16:43:41 -04:00
2019-12-04 17:10:51 -05:00
2018-05-08 09:07:35 -04:00
2020-01-17 14:02:35 -05:00
2019-03-25 17:36:53 -04:00
2019-08-11 16:43:41 -04:00
2019-10-11 15:33:27 -04:00
2020-01-21 15:56:15 +01:00
2019-08-11 16:43:41 -04:00
2019-01-15 15:28:44 -05:00
2019-08-11 16:43:41 -04:00
2019-10-23 20:47:12 -04:00
2019-08-11 16:43:41 -04:00
2018-09-28 20:22:36 -04:00
2019-04-12 07:04:18 +02:00
2018-07-02 14:14:20 -05:00
2020-01-23 07:29:58 -05:00
2019-08-11 16:43:41 -04:00