[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4a62570b-00bd-4740-a416-1f13da3469ce@roeck-us.net>
Date: Thu, 9 Jan 2025 06:08:30 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Denis Kirjanov <kirjanov@...il.com>, robert.marko@...tura.hr,
jdelvare@...e.com
Cc: linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate
through i2c
On 1/9/25 02:09, Denis Kirjanov wrote:
> Add support for instantiating the Delta DPS920AB PSU
> through I2C on systems without devicetree support.
>
> Signed-off-by: Denis Kirjanov <kirjanov@...il.com>
> ---
Change log goes here.
> drivers/hwmon/pmbus/dps920ab.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/hwmon/pmbus/dps920ab.c b/drivers/hwmon/pmbus/dps920ab.c
> index cc5aac9dfdb3..c002ed41f517 100644
> --- a/drivers/hwmon/pmbus/dps920ab.c
> +++ b/drivers/hwmon/pmbus/dps920ab.c
> @@ -190,12 +190,19 @@ static const struct of_device_id __maybe_unused dps920ab_of_match[] = {
>
> MODULE_DEVICE_TABLE(of, dps920ab_of_match);
>
> +static struct i2c_device_id dps920ab_i2c_match[] = {
> + { "dps920ab" },
> + {}
> +};
> +MODULE_DEVICE_TABLE(i2c, dps920ab_i2c_match);
> +
> 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);
Powered by blists - more mailing lists