All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eddie James <eajames@linux.ibm.com>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH v3 3/4] eeprom: ee1004: Add OF matching support
Date: Wed, 22 Mar 2023 09:03:47 -0500	[thread overview]
Message-ID: <20230322140348.569397-4-eajames@linux.ibm.com> (raw)
In-Reply-To: <20230322140348.569397-1-eajames@linux.ibm.com>

Add an OF match table for devicetree instantiation of the
AT30TSE004A EEPROM.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
Changes since v2:
 - Use full model number
 - Fix commit name

 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 0aed5760e370..b7566c1d6edd 100644
--- a/drivers/misc/eeprom/ee1004.c
+++ b/drivers/misc/eeprom/ee1004.c
@@ -58,6 +58,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,at30tse004a" },
+	{}
+};
+MODULE_DEVICE_TABLE(of, ee1004_of_match);
+
 /*-------------------------------------------------------------------------*/
 
 static int ee1004_get_current_page(struct ee1004_bus *bus)
@@ -269,6 +275,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


WARNING: multiple messages have this Message-ID (diff)
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 v3 3/4] eeprom: ee1004: Add OF matching support
Date: Wed, 22 Mar 2023 09:03:47 -0500	[thread overview]
Message-ID: <20230322140348.569397-4-eajames@linux.ibm.com> (raw)
In-Reply-To: <20230322140348.569397-1-eajames@linux.ibm.com>

Add an OF match table for devicetree instantiation of the
AT30TSE004A EEPROM.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
Changes since v2:
 - Use full model number
 - Fix commit name

 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 0aed5760e370..b7566c1d6edd 100644
--- a/drivers/misc/eeprom/ee1004.c
+++ b/drivers/misc/eeprom/ee1004.c
@@ -58,6 +58,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,at30tse004a" },
+	{}
+};
+MODULE_DEVICE_TABLE(of, ee1004_of_match);
+
 /*-------------------------------------------------------------------------*/
 
 static int ee1004_get_current_page(struct ee1004_bus *bus)
@@ -269,6 +275,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


  parent reply	other threads:[~2023-03-22 14:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 14:03 [PATCH v3 0/4] eeprom: ee1004: Enable devices on multiple busses Eddie James
2023-03-22 14:03 ` Eddie James
2023-03-22 14:03 ` [PATCH v3 1/4] " Eddie James
2023-03-22 14:03   ` Eddie James
2023-03-29 10:07   ` Greg KH
2023-03-29 10:07     ` Greg KH
2023-03-22 14:03 ` [PATCH v3 2/4] dt-bindings: trivial-devices: Add Atmel AT30TSE004A serial eeprom Eddie James
2023-03-22 14:03   ` Eddie James
2023-03-22 21:54   ` Krzysztof Kozlowski
2023-03-22 21:54     ` Krzysztof Kozlowski
2023-03-22 14:03 ` Eddie James [this message]
2023-03-22 14:03   ` [PATCH v3 3/4] eeprom: ee1004: Add OF matching support Eddie James
2023-03-22 14:03 ` [PATCH v3 4/4] ARM: dts: aspeed: bonnell: Add DIMM SPD Eddie James
2023-03-22 14:03   ` Eddie James
2023-03-27  0:46   ` Joel Stanley
2023-03-27  0:46     ` Joel Stanley

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=20230322140348.569397-4-eajames@linux.ibm.com \
    --to=eajames@linux.ibm.com \
    --cc=linux-aspeed@lists.ozlabs.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.