linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate through i2c
@ 2025-01-09 10:09 Denis Kirjanov
  2025-01-09 14:08 ` Guenter Roeck
  2025-01-10  1:24 ` Guenter Roeck
  0 siblings, 2 replies; 3+ messages in thread
From: Denis Kirjanov @ 2025-01-09 10:09 UTC (permalink / raw)
  To: robert.marko, jdelvare, linux; +Cc: linux-hwmon, linux-kernel, Denis Kirjanov

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

Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
---
 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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate through i2c
  2025-01-09 10:09 [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate through i2c Denis Kirjanov
@ 2025-01-09 14:08 ` Guenter Roeck
  2025-01-10  1:24 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2025-01-09 14:08 UTC (permalink / raw)
  To: Denis Kirjanov, robert.marko, jdelvare; +Cc: linux-hwmon, linux-kernel

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@gmail.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);


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate through i2c
  2025-01-09 10:09 [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate through i2c Denis Kirjanov
  2025-01-09 14:08 ` Guenter Roeck
@ 2025-01-10  1:24 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2025-01-10  1:24 UTC (permalink / raw)
  To: Denis Kirjanov; +Cc: robert.marko, jdelvare, linux-hwmon, linux-kernel

On Thu, Jan 09, 2025 at 01:09:12PM +0300, Denis Kirjanov wrote:
> Add support for instantiating the Delta DPS920AB PSU
> through I2C on systems without devicetree support.
> 
> Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>

Oh, never mind the change log. I looked up the older versions.
Applied.

Guenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-10  1:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 10:09 [PATCH v3] hwmon: pmbus: dps920ab: Add ability to instantiate through i2c Denis Kirjanov
2025-01-09 14:08 ` Guenter Roeck
2025-01-10  1:24 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).