hwmon: (pmbus) Use _pmbus_read_byte_data with callback
authorMårten Lindahl <marten.lindahl@axis.com>
Thu, 28 Apr 2022 14:40:37 +0000 (16:40 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 20 May 2022 17:57:06 +0000 (10:57 -0700)
commitf0a5c839766334b09e0f280fa10ff5555f71f825
treee0c4ae6c556e18e1f898e0b24b86314876e7b386
parent5de3e13f7f6b496bd7bd9ff4d2b915b7d3e67cda
hwmon: (pmbus) Use _pmbus_read_byte_data with callback

Some of the pmbus core functions uses pmbus_read_byte_data, which does
not support driver callbacks for chip specific write operations. This
could potentially influence some specific regulator chips that for
example need a time delay before each data access.

Lets use _pmbus_read_byte_data with callback check.

Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20220428144039.2464667-3-marten.lindahl@axis.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c