Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: dac: ad5593r: Add ACPI support

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Michael Hennerich and committed by
Jonathan Cameron
2cc5b0df b0570bce

+8
+8
drivers/iio/dac/ad5593r.c
··· 13 13 #include <linux/i2c.h> 14 14 #include <linux/module.h> 15 15 #include <linux/of.h> 16 + #include <linux/acpi.h> 16 17 17 18 #define AD5593R_MODE_CONF (0 << 4) 18 19 #define AD5593R_MODE_DAC_WRITE (1 << 4) ··· 116 115 }; 117 116 MODULE_DEVICE_TABLE(of, ad5593r_of_match); 118 117 118 + static const struct acpi_device_id ad5593r_acpi_match[] = { 119 + {"ADS5593", }, 120 + { }, 121 + }; 122 + MODULE_DEVICE_TABLE(acpi, ad5593r_acpi_match); 123 + 119 124 static struct i2c_driver ad5593r_driver = { 120 125 .driver = { 121 126 .name = "ad5593r", 122 127 .of_match_table = of_match_ptr(ad5593r_of_match), 128 + .acpi_match_table = ACPI_PTR(ad5593r_acpi_match), 123 129 }, 124 130 .probe = ad5593r_i2c_probe, 125 131 .remove = ad5593r_i2c_remove,