hwmon: pmbus: mpq8785: Prepare driver for multiple device support

[ Upstream commit 1bc6020dc4 ]

Refactor the driver to support multiple Monolithic Power Systems devices.
Introduce chip ID handling based on device tree matching.

No functional changes intended.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://lore.kernel.org/r/20250511035701.2607947-3-paweldembicki@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Stable-dep-of: 9e33c1dba2 ("hwmon: (pmbus/mpq8785) fix VOUT_MODE mismatch during identification")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Pawel Dembicki 2025-05-11 05:55:45 +02:00 • committed by Sasha Levin
commit 7cd0bc5fe1