* [PATCH 1/2] iio: dac: ad5592r: Add ACPI support
@ 2016-12-19 12:10 michael.hennerich
2016-12-19 12:10 ` [PATCH 2/2] iio: dac: ad5593r: " michael.hennerich
2016-12-30 17:19 ` [PATCH 1/2] iio: dac: ad5592r: " Jonathan Cameron
0 siblings, 2 replies; 3+ messages in thread
From: michael.hennerich @ 2016-12-19 12:10 UTC (permalink / raw)
To: linux-iio, jic23; +Cc: Michael Hennerich
From: Michael Hennerich <michael.hennerich@analog.com>
This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
designed around the unified device property API.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/iio/dac/ad5592r.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/iio/dac/ad5592r.c b/drivers/iio/dac/ad5592r.c
index 6eed5b7..6a12a3c 100644
--- a/drivers/iio/dac/ad5592r.c
+++ b/drivers/iio/dac/ad5592r.c
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/of.h>
#include <linux/spi/spi.h>
+#include <linux/acpi.h>
#define AD5592R_GPIO_READBACK_EN BIT(10)
#define AD5592R_LDAC_READBACK_EN BIT(6)
@@ -148,10 +149,17 @@ static const struct of_device_id ad5592r_of_match[] = {
};
MODULE_DEVICE_TABLE(of, ad5592r_of_match);
+static const struct acpi_device_id ad5592r_acpi_match[] = {
+ {"ADS5592", },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, ad5592r_acpi_match);
+
static struct spi_driver ad5592r_spi_driver = {
.driver = {
.name = "ad5592r",
.of_match_table = of_match_ptr(ad5592r_of_match),
+ .acpi_match_table = ACPI_PTR(ad5592r_acpi_match),
},
.probe = ad5592r_spi_probe,
.remove = ad5592r_spi_remove,
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] iio: dac: ad5593r: Add ACPI support
2016-12-19 12:10 [PATCH 1/2] iio: dac: ad5592r: Add ACPI support michael.hennerich
@ 2016-12-19 12:10 ` michael.hennerich
2016-12-30 17:19 ` [PATCH 1/2] iio: dac: ad5592r: " Jonathan Cameron
1 sibling, 0 replies; 3+ messages in thread
From: michael.hennerich @ 2016-12-19 12:10 UTC (permalink / raw)
To: linux-iio, jic23; +Cc: Michael Hennerich
From: Michael Hennerich <michael.hennerich@analog.com>
This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
designed around the unified device property API.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/iio/dac/ad5593r.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/iio/dac/ad5593r.c b/drivers/iio/dac/ad5593r.c
index dca158a..fc11ea0 100644
--- a/drivers/iio/dac/ad5593r.c
+++ b/drivers/iio/dac/ad5593r.c
@@ -13,6 +13,7 @@
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of.h>
+#include <linux/acpi.h>
#define AD5593R_MODE_CONF (0 << 4)
#define AD5593R_MODE_DAC_WRITE (1 << 4)
@@ -115,10 +116,17 @@ static const struct of_device_id ad5593r_of_match[] = {
};
MODULE_DEVICE_TABLE(of, ad5593r_of_match);
+static const struct acpi_device_id ad5593r_acpi_match[] = {
+ {"ADS5593", },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, ad5593r_acpi_match);
+
static struct i2c_driver ad5593r_driver = {
.driver = {
.name = "ad5593r",
.of_match_table = of_match_ptr(ad5593r_of_match),
+ .acpi_match_table = ACPI_PTR(ad5593r_acpi_match),
},
.probe = ad5593r_i2c_probe,
.remove = ad5593r_i2c_remove,
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] iio: dac: ad5592r: Add ACPI support
2016-12-19 12:10 [PATCH 1/2] iio: dac: ad5592r: Add ACPI support michael.hennerich
2016-12-19 12:10 ` [PATCH 2/2] iio: dac: ad5593r: " michael.hennerich
@ 2016-12-30 17:19 ` Jonathan Cameron
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2016-12-30 17:19 UTC (permalink / raw)
To: michael.hennerich, linux-iio
On 19/12/16 12:10, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
> designed around the unified device property API.
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Applied.
Thanks,
Jonathan
> ---
> drivers/iio/dac/ad5592r.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/iio/dac/ad5592r.c b/drivers/iio/dac/ad5592r.c
> index 6eed5b7..6a12a3c 100644
> --- a/drivers/iio/dac/ad5592r.c
> +++ b/drivers/iio/dac/ad5592r.c
> @@ -13,6 +13,7 @@
> #include <linux/module.h>
> #include <linux/of.h>
> #include <linux/spi/spi.h>
> +#include <linux/acpi.h>
>
> #define AD5592R_GPIO_READBACK_EN BIT(10)
> #define AD5592R_LDAC_READBACK_EN BIT(6)
> @@ -148,10 +149,17 @@ static const struct of_device_id ad5592r_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, ad5592r_of_match);
>
> +static const struct acpi_device_id ad5592r_acpi_match[] = {
> + {"ADS5592", },
> + { },
> +};
> +MODULE_DEVICE_TABLE(acpi, ad5592r_acpi_match);
> +
> static struct spi_driver ad5592r_spi_driver = {
> .driver = {
> .name = "ad5592r",
> .of_match_table = of_match_ptr(ad5592r_of_match),
> + .acpi_match_table = ACPI_PTR(ad5592r_acpi_match),
> },
> .probe = ad5592r_spi_probe,
> .remove = ad5592r_spi_remove,
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-30 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-19 12:10 [PATCH 1/2] iio: dac: ad5592r: Add ACPI support michael.hennerich
2016-12-19 12:10 ` [PATCH 2/2] iio: dac: ad5593r: " michael.hennerich
2016-12-30 17:19 ` [PATCH 1/2] iio: dac: ad5592r: " Jonathan Cameron
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).