]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5165f6e501922c60fdbe574476b36b46d568a0f
treee0c4ae6c556e18e1f898e0b24b86314876e7b386
parentfaeae9359d18a493fe568cf0606a8f4582411cc0
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