From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29243C072AD for ; Sun, 19 May 2019 17:52:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8F432053B for ; Sun, 19 May 2019 17:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558288343; bh=hpwbVfmn2fxc4zYpjdxBfzApp8qMJssloRB3VH4zxj4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=lujDQKcU88PfdC6TXUFZSOFG3oJ3U1FfSxSSwFy4jhkkkKxeuyE5UahkQxJWosexW xawxdSrPdWyf6su76oTlOu9zHpyjxMmvLWFjcSgFvacLKMHC95pimgQi9L/7SO6Kf1 oJegUYF99eTdSZ5Tt1jdOn20/HmaLBSD90/PDeFk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729213AbfESRwW (ORCPT ); Sun, 19 May 2019 13:52:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:44538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbfESRwV (ORCPT ); Sun, 19 May 2019 13:52:21 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1671A21734; Sun, 19 May 2019 10:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558262647; bh=hpwbVfmn2fxc4zYpjdxBfzApp8qMJssloRB3VH4zxj4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HcZRRlrOQijMKrZyA1qTt28Ejb7F7BqzkAs/QKXjwVJ06XeEIL5f4LgRLMLBLZ+Sx pvSECfzmtq3JP1nSelueUiOlQzYJmpKMciv6P49U4jx252MSKR9uZN1W0o+z1hT981 WwOZ6rLU/SLcZKkq5HCn69jbmuUVTfRaA0FpH5ew= Date: Sun, 19 May 2019 11:44:00 +0100 From: Jonathan Cameron To: =?UTF-8?B?QsOhcmJhcmE=?= Fernandes Cc: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Wilson Sales Subject: Re: [RESEND PATCH] staging: iio: adt7316: create of_device_id array Message-ID: <20190519114400.5cc29c77@archlinux> In-Reply-To: <20190518224333.18067-1-barbara.fernandes@usp.br> References: <20190518224333.18067-1-barbara.fernandes@usp.br> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 May 2019 19:43:33 -0300 B=C3=A1rbara Fernandes wrote: > Create structure of type of_device_id in order to register all devices > the driver is able to manage. >=20 > Signed-off-by: B=C3=A1rbara Fernandes > Signed-off-by: Wilson Sales > Co-developed-by: Wilson Sales Looks good to me. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/staging/iio/addac/adt7316-spi.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) >=20 > diff --git a/drivers/staging/iio/addac/adt7316-spi.c b/drivers/staging/ii= o/addac/adt7316-spi.c > index 8294b9c1e3c2..9968775f1d23 100644 > --- a/drivers/staging/iio/addac/adt7316-spi.c > +++ b/drivers/staging/iio/addac/adt7316-spi.c > @@ -127,9 +127,22 @@ static const struct spi_device_id adt7316_spi_id[] = =3D { > =20 > MODULE_DEVICE_TABLE(spi, adt7316_spi_id); > =20 > +static const struct of_device_id adt7316_of_spi_match[] =3D { > + { .compatible =3D "adi,adt7316" }, > + { .compatible =3D "adi,adt7317" }, > + { .compatible =3D "adi,adt7318" }, > + { .compatible =3D "adi,adt7516" }, > + { .compatible =3D "adi,adt7517" }, > + { .compatible =3D "adi,adt7519" }, > + { } > +}; > + > +MODULE_DEVICE_TABLE(of, adt7316_of_spi_match); > + > static struct spi_driver adt7316_driver =3D { > .driver =3D { > .name =3D "adt7316", > + .of_match_table =3D adt7316_of_spi_match, > .pm =3D ADT7316_PM_OPS, > }, > .probe =3D adt7316_spi_probe,