Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3243964imu; Sat, 24 Nov 2018 00:56:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uc89C9jha0bOr1qwiXsmDxsq3Qz6/WFwGqK5ZHqpzKLuHczYpHaq/eQp0bayx/z+sWynSn X-Received: by 2002:a63:cc12:: with SMTP id x18mr17046462pgf.33.1543049815379; Sat, 24 Nov 2018 00:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049815; cv=none; d=google.com; s=arc-20160816; b=f+Ntckh2Bff/IiH3xzGnJG6TYqCjdYuKatGuEuiuAh78ugOGQ4UDWBmQYYE7BZNlQi DLH6qMD54IDpmtBC1Al4Bsk//BK1Uka/HFFPCel9J+A8clJkCpkzaziL9TYXH+brOTrD deVsSCD2uOmsMxoG73vLJg7jxxFp6yDFbgHFQ1y7XAaWi71xwJMdb+tjOe7RXPRRLqee S7N7ajmOrs3lps2u5oW36kM2TDITlyhcKMPZ+PzZ/IVh7dO8xqtc0P+TB0LhgcodhOtG zxNqZP0JwqZT2h3meM+ZGSZO5ryL3le9PU0KTSnxI9Rfli5V2jxZSBTvNg4GkdzW8WiU zAaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IEWXOl1MYbwRFC09jkUW59qSOC1AMKcWJWbpyk31RbU=; b=qovEe8gYT8Xryym6uYLYQTs8NmTaB9tUKkmnsctlw0I90JzpwRa+JDfdKKJ+tmkMIL J+qXstVJfpXkrhohS1T7KYS2b2z0V3zuzXwxkNfFxtlJpYylpWCddBp9FwTcLIesvq98 ozDRJbsBU6NpsqJvR9TV2Z2WSVaeUTGCR6MlDFsKZp5ic0IdnXn1GqSORaZNyvKarNah GeeEgHSNqAHVImJYlNHP9Ic7WbXK1nsK1XBBFdB+g7/vj4dHwNM+qvsIpmbjqPhgzBBw 0jNTviuIbICsX+GFnLzVhBszDziyOaUAFeFMn7cH0CL/NY3V6WLxP0uA+cksTZKAWFER rDaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBigg9Mj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si18516375pld.92.2018.11.24.00.56.41; Sat, 24 Nov 2018 00:56:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBigg9Mj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728521AbeKXLVr (ORCPT + 99 others); Sat, 24 Nov 2018 06:21:47 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:38291 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728494AbeKXLVr (ORCPT ); Sat, 24 Nov 2018 06:21:47 -0500 Received: by mail-qt1-f193.google.com with SMTP id p17so12062748qtl.5; Fri, 23 Nov 2018 16:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IEWXOl1MYbwRFC09jkUW59qSOC1AMKcWJWbpyk31RbU=; b=WBigg9Mjd7bNMHMSualHy7t1x3eeIiyTTcrKeQ5nPqeHGyVWLDhtx4v8sHYUmAlBPL 3hCFohyIcJRJYNqkDaYunokxT2K+sRVi5WUcccPtlVWAN64aqw37b5Pp/m7zg6DtBsyQ WaF00+nFUfYwjSz70yhJFaMda+ObkuzipkkUYhVTCWF/aKYuf4P3IJfeq8SDiGYt9xr+ rQsR6uzSEQkJ1QMOpKKFMJeStx2Yl4C1lwvouG+XsT5t2j4/9mTqh8ruFbipxomZG/wZ 91JDAiIbONwvCSY5JnAIisbf8DJjr18gVEBrTV9mdwh4UwUxeHgdcJsCmr5jJp8VLaRz yqxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IEWXOl1MYbwRFC09jkUW59qSOC1AMKcWJWbpyk31RbU=; b=bkc2EcLPCmtTaKhDmeZ8qIXdxsvbeoWh1ZokI1UkGfjjo6qAvjlhupaU1d7RymkMvP pgZ8HT49mEGcLXN4YHCfC7N6r1bmR4t6pWHkOCtMdMNwwuoQ7zElFz6z9fIObeSyCFv6 iokomy+/ix6cYKdcEdv/V4FaxORCBeizemqruBRajpyDbhd2dk2GqME4f3dZFPb0WsjT NIbGX669+E/rU8vPVIcQktSb20ruMJK3HhHuz3MjfuqDDas7BKu/GEQU6tokbhuDGAql YbmGpu6o4J6s4TEb7NDL2f2d5VmltRLJhfriq6RQAozgJdqMdTLp6l20qry5/K7xqK8/ PZ3w== X-Gm-Message-State: AA+aEWaXv3yAZI6HMiYF+ife2y66n05E5enHDZT178/xZXs5RmxhG42f HFmvIbMj+fbVsjBaihbdNTU= X-Received: by 2002:a0c:b786:: with SMTP id l6mr17275947qve.244.1543019723154; Fri, 23 Nov 2018 16:35:23 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id v10sm20222045qkb.57.2018.11.23.16.35.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 16:35:22 -0800 (PST) Date: Fri, 23 Nov 2018 22:35:18 -0200 From: Rodrigo Siqueira To: Marcelo Schmitt Cc: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: Re: [PATCH] staging: iio: ad5933: finalized device-tree support Message-ID: <20181124003518.6heacjyxuwh6l32y@smtp.gmail.com> References: <20181123235159.hh43xnvvwsil4on2@smtp.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a37eh5f7bmtphsys" Content-Disposition: inline In-Reply-To: <20181123235159.hh43xnvvwsil4on2@smtp.gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --a37eh5f7bmtphsys Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Marcelo, I believe that a proper commit message for this patch could be something like "Add device tree support". On 11/23, Marcelo Schmitt wrote: > Added a of_device_id struct variable and subsequent call to > MODULE_DEVICE_TABLE macro to complete device-tree support for this > driver. >=20 > Signed-off-by: Marcelo Schmitt > --- > drivers/staging/iio/impedance-analyzer/ad5933.c | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/st= aging/iio/impedance-analyzer/ad5933.c > index edb8b540bbf1..19e8b6d2865c 100644 > --- a/drivers/staging/iio/impedance-analyzer/ad5933.c > +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c > @@ -771,9 +771,18 @@ static const struct i2c_device_id ad5933_id[] =3D { > =20 > MODULE_DEVICE_TABLE(i2c, ad5933_id); > =20 > +static const struct of_device_id ad5933_of_match[] =3D { > + { .compatible =3D "analog-devices,ad5933" }, > + { .compatible =3D "analog-devices,ad5934" }, > + { }, > +}; > + > +MODULE_DEVICE_TABLE(of, ad5933_of_match); > + > static struct i2c_driver ad5933_driver =3D { > .driver =3D { > .name =3D "ad5933", > + .of_match_table =3D ad5933_of_match, > }, > .probe =3D ad5933_probe, > .remove =3D ad5933_remove, > --=20 > 2.17.1 >=20 > --=20 > You received this message because you are subscribed to the Google Groups= "Kernel USP" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to kernel-usp+unsubscribe@googlegroups.com. > To post to this group, send email to kernel-usp@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgi= d/kernel-usp/20181123235159.hh43xnvvwsil4on2%40smtp.gmail.com. > For more options, visit https://groups.google.com/d/optout. --=20 Rodrigo Siqueira https://siqueira.tech https://twitter.com/siqueirajordao Graduate Student Department of Computer Science University of S=E3o Paulo --a37eh5f7bmtphsys Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE4tZ+ii1mjMCMQbfkWJzP/comvP8FAlv4nMUACgkQWJzP/com vP8KCg//auRaWyCY+ySHog5NMcujjY9e19krbXNQ0vj0mLQ3spLEtZrRxvMA6p/p 6mEkK0MPvOUn2gpnQeoFgIWwnVM6XTYqG4quYKrbux/eHlfPa+udtwYNSl0nBGsU PvUjZWCS0BGe+mZObVi49EXRBfw6lTdPZ4E8SMygueq26G4oAvcYRKxtoX3BDtZE m3zWz50TIVcTmG/SpCsELWzfBNqmU9RGHm5wDBM6cIErHvnIUqJQvUMoFIRFCg8t EngBomPyTsDwuteLm7hJy3pmGbtalJOWqfeFVaCpNKL4cAJw0DpEUJqCmbIj8Oy1 aisKyM/Dby5hyrB6fD2QwYib7FYGPcNpjpHl+net5dz+lyjFHKWU+Y1nodQpD9EU RQ3nVrg6ciPQsjCI97uqop72K6bDYPnYcJQls+6BPfhCW7QUCVDsGOwMiiY8eF0w a3bDyAeF1AhJz6UPtEJgYbSIP/0iMmLMFqbx09TCJckQaO+E5rpuNzDWcMQrmWLn cWb7fdHvVPt/gUtnPRzdSh1XT3PKh2MgDeYrV7+7o+7P0SDvu3VOomKRKPCSwjCF 0n4dRM4iZSRvApB6wTJUdlw7GReARe9FiB7NLnWGlGk1Lrr2yDexdXSlhcbipLTk tT+vPMK235PI3S0uO636ms5VqqoGlemt3JFlSIaNzpAcBKnb1LE= =xl0V -----END PGP SIGNATURE----- --a37eh5f7bmtphsys--