* [RESEND PATCH] NFC: trf7970a: Add OF match table
@ 2015-09-16 9:08 Javier Martinez Canillas
2015-10-09 13:56 ` Javier Martinez Canillas
2015-10-20 4:49 ` Samuel Ortiz
0 siblings, 2 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2015-09-16 9:08 UTC (permalink / raw)
To: linux-kernel
Cc: Javier Martinez Canillas, Lauro Ramos Venancio,
Aloisio Almeida Jr, linux-wireless, Samuel Ortiz
The Documentation/devicetree/bindings/net/nfc/trf7970a.txt DT binding doc
lists "ti,trf7970a" as a compatible string but the corresponding driver
does not have an OF match table. Add the table to the driver so the SPI
core can do an OF style match.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
drivers/nfc/trf7970a.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c
index 70b0707fd9a9..123aa981c9d8 100644
--- a/drivers/nfc/trf7970a.c
+++ b/drivers/nfc/trf7970a.c
@@ -2211,6 +2211,12 @@ static const struct dev_pm_ops trf7970a_pm_ops = {
trf7970a_pm_runtime_resume, NULL)
};
+static const struct of_device_id trf7970a_of_match[] = {
+ { .compatible = "ti,trf7970a", },
+ { /* sentinel */ },
+};
+MODULE_DEVICE_TABLE(of, trf7970a_of_match);
+
static const struct spi_device_id trf7970a_id_table[] = {
{ "trf7970a", 0 },
{ }
@@ -2223,6 +2229,7 @@ static struct spi_driver trf7970a_spi_driver = {
.id_table = trf7970a_id_table,
.driver = {
.name = "trf7970a",
+ .of_match_table = of_match_ptr(trf7970a_of_match),
.owner = THIS_MODULE,
.pm = &trf7970a_pm_ops,
},
--
2.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [RESEND PATCH] NFC: trf7970a: Add OF match table
2015-09-16 9:08 [RESEND PATCH] NFC: trf7970a: Add OF match table Javier Martinez Canillas
@ 2015-10-09 13:56 ` Javier Martinez Canillas
2015-10-20 4:49 ` Samuel Ortiz
1 sibling, 0 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2015-10-09 13:56 UTC (permalink / raw)
To: linux-kernel
Cc: Lauro Ramos Venancio, Aloisio Almeida Jr, linux-wireless,
Samuel Ortiz
Hello,
On 09/16/2015 11:08 AM, Javier Martinez Canillas wrote:
> The Documentation/devicetree/bindings/net/nfc/trf7970a.txt DT binding doc
> lists "ti,trf7970a" as a compatible string but the corresponding driver
> does not have an OF match table. Add the table to the driver so the SPI
> core can do an OF style match.
>
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
>
> ---
>
> drivers/nfc/trf7970a.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c
> index 70b0707fd9a9..123aa981c9d8 100644
> --- a/drivers/nfc/trf7970a.c
> +++ b/drivers/nfc/trf7970a.c
> @@ -2211,6 +2211,12 @@ static const struct dev_pm_ops trf7970a_pm_ops = {
> trf7970a_pm_runtime_resume, NULL)
> };
>
> +static const struct of_device_id trf7970a_of_match[] = {
> + { .compatible = "ti,trf7970a", },
> + { /* sentinel */ },
> +};
> +MODULE_DEVICE_TABLE(of, trf7970a_of_match);
> +
> static const struct spi_device_id trf7970a_id_table[] = {
> { "trf7970a", 0 },
> { }
> @@ -2223,6 +2229,7 @@ static struct spi_driver trf7970a_spi_driver = {
> .id_table = trf7970a_id_table,
> .driver = {
> .name = "trf7970a",
> + .of_match_table = of_match_ptr(trf7970a_of_match),
> .owner = THIS_MODULE,
> .pm = &trf7970a_pm_ops,
> },
>
Any comments about this patch?
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RESEND PATCH] NFC: trf7970a: Add OF match table
2015-09-16 9:08 [RESEND PATCH] NFC: trf7970a: Add OF match table Javier Martinez Canillas
2015-10-09 13:56 ` Javier Martinez Canillas
@ 2015-10-20 4:49 ` Samuel Ortiz
1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2015-10-20 4:49 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: linux-kernel, Lauro Ramos Venancio, Aloisio Almeida Jr,
linux-wireless
Hi Javier,
On Wed, Sep 16, 2015 at 11:08:42AM +0200, Javier Martinez Canillas wrote:
> The Documentation/devicetree/bindings/net/nfc/trf7970a.txt DT binding doc
> lists "ti,trf7970a" as a compatible string but the corresponding driver
> does not have an OF match table. Add the table to the driver so the SPI
> core can do an OF style match.
>
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
>
> ---
>
> drivers/nfc/trf7970a.c | 7 +++++++
> 1 file changed, 7 insertions(+)
Patch applied, thanks.
Cheers,
Samuel.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-20 4:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 9:08 [RESEND PATCH] NFC: trf7970a: Add OF match table Javier Martinez Canillas
2015-10-09 13:56 ` Javier Martinez Canillas
2015-10-20 4:49 ` Samuel Ortiz
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).