]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (pmbus) Introduce and use write_byte_data callback
authorMårten Lindahl <marten.lindahl@axis.com>
Thu, 28 Apr 2022 14:40:36 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:35 +0000 (15:10 +0200)
commit7e40afcc6989573d3e587e0e2655ba5248e548b1
treeeba2b1e008a0dae3ec5346f1382b0ab135a77e59
parent87bd31cb7e7ad081e024dcf60cfdf23223a179f3
hwmon: (pmbus) Introduce and use write_byte_data callback

[ Upstream commit 5de3e13f7f6b496bd7bd9ff4d2b915b7d3e67cda ]

Some of the pmbus core functions uses pmbus_write_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 add support for driver callback with _pmbus_write_byte_data.

Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20220428144039.2464667-2-marten.lindahl@axis.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Stable-dep-of: 20471071f198 ("hwmon: (pmbus) Conditionally clear individual status bits for pmbus rev >= 1.2")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c