From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Cameron Subject: Re: [PATCH v3 2/7] iio: imu: adis16480: Add OF device ID table Date: Sun, 3 Mar 2019 12:46:55 +0000 Message-ID: <20190303124655.6ebe92d2@archlinux> References: <1551284068-4882-1-git-send-email-stefan.popa@analog.com> <1551284068-4882-3-git-send-email-stefan.popa@analog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1551284068-4882-3-git-send-email-stefan.popa@analog.com> Sender: linux-kernel-owner@vger.kernel.org To: Stefan Popa Cc: robh+dt@kernel.org, Michael.Hennerich@analog.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org On Wed, 27 Feb 2019 18:14:23 +0200 Stefan Popa wrote: > The driver does not have a struct of_device_id table, but supported > devices are registered via Device Trees. This patch adds OF device ID > table. > > Signed-off-by: Stefan Popa Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/imu/adis16480.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c > index 98a23ac..150d814 100644 > --- a/drivers/iio/imu/adis16480.c > +++ b/drivers/iio/imu/adis16480.c > @@ -991,9 +991,19 @@ static const struct spi_device_id adis16480_ids[] = { > }; > MODULE_DEVICE_TABLE(spi, adis16480_ids); > > +static const struct of_device_id adis16480_of_match[] = { > + { .compatible = "adi,adis16375" }, > + { .compatible = "adi,adis16480" }, > + { .compatible = "adi,adis16485" }, > + { .compatible = "adi,adis16488" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, adis16480_of_match); > + > static struct spi_driver adis16480_driver = { > .driver = { > .name = "adis16480", > + .of_match_table = adis16480_of_match, > }, > .id_table = adis16480_ids, > .probe = adis16480_probe,