From: Eddie James <eajames@linux.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org,
andrew@aj.id.au, joel@jms.id.au,
krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org,
arnd@arndb.de, gregkh@linuxfoundation.org,
Eddie James <eajames@linux.ibm.com>
Subject: [PATCH v2 3/4] eeprom: ee1004: Add devicetree binding
Date: Tue, 21 Mar 2023 10:16:41 -0500 [thread overview]
Message-ID: <20230321151642.461618-4-eajames@linux.ibm.com> (raw)
In-Reply-To: <20230321151642.461618-1-eajames@linux.ibm.com>
Add an OF match table for devicetree instantiation of EE1004
devices.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
drivers/misc/eeprom/ee1004.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/misc/eeprom/ee1004.c b/drivers/misc/eeprom/ee1004.c
index 950813821087..72068bb72621 100644
--- a/drivers/misc/eeprom/ee1004.c
+++ b/drivers/misc/eeprom/ee1004.c
@@ -59,6 +59,12 @@ static const struct i2c_device_id ee1004_ids[] = {
};
MODULE_DEVICE_TABLE(i2c, ee1004_ids);
+static const struct of_device_id ee1004_of_match[] = {
+ { .compatible = "atmel,at30tse" },
+ {}
+};
+MODULE_DEVICE_TABLE(of, ee1004_of_match);
+
/*-------------------------------------------------------------------------*/
static int ee1004_get_current_page(struct ee1004_bus *bus)
@@ -270,6 +276,7 @@ static struct i2c_driver ee1004_driver = {
.driver = {
.name = "ee1004",
.dev_groups = ee1004_groups,
+ .of_match_table = ee1004_of_match,
},
.probe_new = ee1004_probe,
.remove = ee1004_remove,
--
2.31.1
next prev parent reply other threads:[~2023-03-21 15:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 15:16 [PATCH v2 0/4] eeprom: ee1004: Enable devices on multiple busses Eddie James
2023-03-21 15:16 ` [PATCH v2 1/4] " Eddie James
2023-03-21 15:39 ` Rob Herring
2023-03-21 15:45 ` Eddie James
2023-03-21 15:16 ` [PATCH v2 2/4] doc: Add Atmel AT30TSE serial eeprom Eddie James
2023-03-21 15:19 ` Krzysztof Kozlowski
2023-03-21 15:46 ` Eddie James
2023-03-21 15:55 ` Eddie James
2023-03-27 15:18 ` Rob Herring
2023-03-27 19:01 ` Eddie James
2023-03-21 15:16 ` Eddie James [this message]
2023-03-21 15:20 ` [PATCH v2 3/4] eeprom: ee1004: Add devicetree binding Krzysztof Kozlowski
2023-03-21 15:16 ` [PATCH v2 4/4] ARM: dts: aspeed: bonnell: Add DIMM SPD Eddie James
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=20230321151642.461618-4-eajames@linux.ibm.com \
--to=eajames@linux.ibm.com \
--cc=andrew@aj.id.au \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=joel@jms.id.au \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.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 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).