From: Angus Ainslie <angus@akkea.ca>
To: angus@akkea.ca
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
Heikki Krogerus <heikki.krogerus@linux.intel.com>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] usb: typec: tps6598x: add device tree hooks
Date: Wed, 6 May 2020 12:17:17 -0700 [thread overview]
Message-ID: <20200506191718.2144752-2-angus@akkea.ca> (raw)
In-Reply-To: <20200506191718.2144752-1-angus@akkea.ca>
Add a compatible string for the devicetree.
Signed-off-by: Angus Ainslie <angus@akkea.ca>
---
drivers/usb/typec/tps6598x.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c
index f661d8722ee0..2e71a35cc9d8 100644
--- a/drivers/usb/typec/tps6598x.c
+++ b/drivers/usb/typec/tps6598x.c
@@ -981,9 +981,16 @@ static const struct i2c_device_id tps6598x_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tps6598x_id);
+static const struct of_device_id tps6598x_of_match[] = {
+ { .compatible = "ti,tps6598x", },
+ { },
+};
+MODULE_DEVICE_TABLE(of, tps6598x_of_match);
+
static struct i2c_driver tps6598x_i2c_driver = {
.driver = {
.name = "tps6598x",
+ .of_match_table = of_match_ptr(tps6598x_of_match),
},
.probe_new = tps6598x_probe,
.remove = tps6598x_remove,
--
2.25.1
next prev parent reply other threads:[~2020-05-06 19:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 19:17 [PATCH 0/2] tps6598x: add device tree hooks and document Angus Ainslie
2020-05-06 19:17 ` Angus Ainslie [this message]
2020-05-06 19:17 ` [PATCH 2/2] dt-bindings: usb: ti,tps6598x: add dt binding doc Angus Ainslie
2020-05-11 15:26 ` Rob Herring
2020-05-11 18:34 ` Angus Ainslie
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=20200506191718.2144752-2-angus@akkea.ca \
--to=angus@akkea.ca \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@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
all inboxes | Powered by JetHome®