Commit a76539b2 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by Guenter Roeck
Browse files

hwmon: pmbus: dps920ab: Add ability to instantiate through i2c



Add support for instantiating the Delta DPS920AB PSU
through I2C on systems without devicetree support.

Signed-off-by: default avatarDenis Kirjanov <kirjanov@gmail.com>
Link: https://lore.kernel.org/r/20250113092846.10786-1-kirjanov@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ecf1cf1c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -190,12 +190,19 @@ static const struct of_device_id __maybe_unused dps920ab_of_match[] = {

MODULE_DEVICE_TABLE(of, dps920ab_of_match);

static const struct i2c_device_id dps920ab_device_id[] = {
	{ "dps920ab" },
	{}
};
MODULE_DEVICE_TABLE(i2c, dps920ab_device_id);

static struct i2c_driver dps920ab_driver = {
	.driver = {
		   .name = "dps920ab",
		   .of_match_table = of_match_ptr(dps920ab_of_match),
	},
	.probe = dps920ab_probe,
	.id_table = dps920ab_device_id,
};

module_i2c_driver(dps920ab_driver);