From: Debjit Ghosh <dghosh@juniper.net>
To: <linux@roeck-us.net>, <linux-hwmon@vger.kernel.org>
Cc: <corbet@lwn.net>, <skhan@linuxfoundation.org>,
<rdunlap@infradead.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <linux-doc@vger.kernel.org>,
<devicetree@vger.kernel.org>, <debjit.ghosh@hpe.com>
Subject: [PATCH v3 2/3] hwmon: (max20751): Add OF device ID table
Date: Tue, 1 Dec 2026 17:27:43 -0800 [thread overview]
Message-ID: <20261202012744.2802478-3-dghosh@juniper.net> (raw)
In-Reply-To: <20261202012744.2802478-1-dghosh@juniper.net>
From: Debjit Ghosh <debjit.ghosh@hpe.com>
Add OF device ID table and module alias information to instantiate
devices through device tree entries.
Signed-off-by: Debjit Ghosh <debjit.ghosh@hpe.com>
---
Changes in v3:
- no changes to this patch
Changes in v2:
- no changes to this patch
drivers/hwmon/pmbus/max20751.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
index 92103ca5b575..58785c858cc7 100644
--- a/drivers/hwmon/pmbus/max20751.c
+++ b/drivers/hwmon/pmbus/max20751.c
@@ -58,9 +58,18 @@ static const struct i2c_device_id max20751_id[] = {
MODULE_DEVICE_TABLE(i2c, max20751_id);
+static const struct of_device_id max20751_of_match[] = {
+ { .compatible = "maxim,max20751", .data = (void *)max20751 },
+ { .compatible = "maxim,max20754", .data = (void *)max20754 },
+ { },
+};
+
+MODULE_DEVICE_TABLE(of, max20751_of_match);
+
static struct i2c_driver max20751_driver = {
.driver = {
.name = "max20751",
+ .of_match_table = of_match_ptr(max20751_of_match),
},
.probe = max20751_probe,
.id_table = max20751_id,
--
2.25.4
next prev parent reply other threads:[~2026-12-02 1:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 1:27 [PATCH v3 0/3] hwmon: Add support for pmbus max20754 device Debjit Ghosh
2026-12-02 1:27 ` [PATCH v3 1/3] hwmon: (max20751): Add support for MAX20754 Debjit Ghosh
2026-12-02 1:27 ` Debjit Ghosh [this message]
2026-12-02 1:27 ` [PATCH v3 3/3] dt-bindings: trivial-devices: add maxim,max20754 compatible Debjit Ghosh
2026-12-02 1:34 ` [PATCH v3 0/3] hwmon: Add support for pmbus max20754 device sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202012744.2802478-3-dghosh@juniper.net \
--to=dghosh@juniper.net \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=debjit.ghosh@hpe.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.