All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Daniel Mack <zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [PATCH 3/4] drivers: misc: ti_dac7512: provide a SPI ID table
Date: Sun, 22 Sep 2013 21:51:48 +0200	[thread overview]
Message-ID: <1379879509-3608-4-git-send-email-zonque@gmail.com> (raw)
In-Reply-To: <1379879509-3608-1-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

This way, the module can be autoloaded by the SPI core.

Signed-off-by: Daniel Mack <zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/misc/ti_dac7512.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/misc/ti_dac7512.c b/drivers/misc/ti_dac7512.c
index 46dfbf3..6393a68 100644
--- a/drivers/misc/ti_dac7512.c
+++ b/drivers/misc/ti_dac7512.c
@@ -72,6 +72,12 @@ static int dac7512_remove(struct spi_device *spi)
 	return 0;
 }
 
+static const struct spi_device_id dac7512_id_table[] = {
+	{ "dac7512", 0 },
+	{ }
+};
+MODULE_DEVICE_TABLE(spi, dac7512_id_table);
+
 static struct spi_driver dac7512_driver = {
 	.driver = {
 		.name	= "dac7512",
@@ -79,6 +85,7 @@ static struct spi_driver dac7512_driver = {
 	},
 	.probe	= dac7512_probe,
 	.remove	= dac7512_remove,
+	.id_table = dac7512_id_table,
 };
 
 module_spi_driver(dac7512_driver);
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Daniel Mack <zonque@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: broonie@kernel.org, devicetree@vger.kernel.org,
	Daniel Mack <zonque@gmail.com>
Subject: [PATCH 3/4] drivers: misc: ti_dac7512: provide a SPI ID table
Date: Sun, 22 Sep 2013 21:51:48 +0200	[thread overview]
Message-ID: <1379879509-3608-4-git-send-email-zonque@gmail.com> (raw)
In-Reply-To: <1379879509-3608-1-git-send-email-zonque@gmail.com>

This way, the module can be autoloaded by the SPI core.

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 drivers/misc/ti_dac7512.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/misc/ti_dac7512.c b/drivers/misc/ti_dac7512.c
index 46dfbf3..6393a68 100644
--- a/drivers/misc/ti_dac7512.c
+++ b/drivers/misc/ti_dac7512.c
@@ -72,6 +72,12 @@ static int dac7512_remove(struct spi_device *spi)
 	return 0;
 }
 
+static const struct spi_device_id dac7512_id_table[] = {
+	{ "dac7512", 0 },
+	{ }
+};
+MODULE_DEVICE_TABLE(spi, dac7512_id_table);
+
 static struct spi_driver dac7512_driver = {
 	.driver = {
 		.name	= "dac7512",
@@ -79,6 +85,7 @@ static struct spi_driver dac7512_driver = {
 	},
 	.probe	= dac7512_probe,
 	.remove	= dac7512_remove,
+	.id_table = dac7512_id_table,
 };
 
 module_spi_driver(dac7512_driver);
-- 
1.8.3.1


  parent reply	other threads:[~2013-09-22 19:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22 19:51 [PATCH 0/4] dac7512: some cleanups and DT bindings Daniel Mack
2013-09-22 19:51 ` [PATCH 1/4] drivers: misc: ti_dac7512: drop module version Daniel Mack
2013-09-22 19:51 ` [PATCH 2/4] drivers: misc: ti_dac7512: drop DAC7512_DRV_NAME Daniel Mack
     [not found] ` <1379879509-3608-1-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-22 19:51   ` Daniel Mack [this message]
2013-09-22 19:51     ` [PATCH 3/4] drivers: misc: ti_dac7512: provide a SPI ID table Daniel Mack
2013-09-22 19:51   ` [PATCH 4/4] drivers: misc: ti_dac7512: add support for DT matching Daniel Mack
2013-09-22 19:51     ` Daniel Mack
2013-09-23 10:19   ` [PATCH 0/4] dac7512: some cleanups and DT bindings Mark Brown
2013-09-23 10:19     ` Mark Brown
     [not found]     ` <20130923101940.GZ21013-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-23 10:31       ` Daniel Mack
2013-09-23 10:31         ` Daniel Mack
     [not found]         ` <52401884.2070509-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-23 13:49           ` Greg Kroah-Hartman
2013-09-23 13:49             ` Greg Kroah-Hartman
2013-09-26 16:03           ` Greg Kroah-Hartman
2013-09-26 16:03             ` Greg Kroah-Hartman

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=1379879509-3608-4-git-send-email-zonque@gmail.com \
    --to=zonque-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.