Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3250726imu; Sat, 24 Nov 2018 01:04:54 -0800 (PST) X-Google-Smtp-Source: AJdET5f5VN8ckdT/P1oPg9FR8XfpxSkKYx+fnvQcN+SHQ2GNxWiZbUijydVKRt8cCHxcQVckRINB X-Received: by 2002:a62:a1a:: with SMTP id s26mr19471336pfi.31.1543050294743; Sat, 24 Nov 2018 01:04:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543050294; cv=none; d=google.com; s=arc-20160816; b=g38DpI9DdgpMa1EWZ+n0Hk7hDQfEY7n+M0wjGDa49xvHj2rhRhpvo9IBI42mbnRHbl rmMRmbvZtTCbsecHVTsug6lsvuh8v1/9M2Jn1Cp3JacEmJJDf7Kk324MBT7FNjjpMdmz aLE4sz60XGFASLrRooO45L7jYa+BVcGGMT6jRZw1xWRIGD+vjr3PEGWGpMqcsGjmcfTm eCjJ3ZrQxCnFqHbfJuAMxGMZinqo0icVNx+kcmTrT2q8Oi2i3ZDLlREpj6nNgxFbOW29 t1AZVJmHSogmc2tYMWRjbaXHq5nbtEEKI0ErC/wLXogFst6PdhN7+UjGPf99OfQSmzdy 1nHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L1iUpS2Dny8BBvABpkcMc6lqRVqWZgWrk8jZ5TLl2qk=; b=dIvLUg6FZ0LMlXZpxOaREUzb2cqvc0eHuiFvxOOqJUwR3P4Io0aonj7b0WmmbonNJz Mu5VL5532uiPeU8Xk1eAyCy3F7VPOokY6SKVc1HiP6Agjy6H0IyhhByAdKXIrw20yffF dPLNx3SvDhJ29XcHWR5kQLjpargfC4luvFUwYfBCs+WPcdMVkIUWCyK4QdHKrmLaAm9U Q/WkBNdBX+ItgKg1EEJLWK3W5ptJ8EiQBj0Qo0W3fspIcTIsnC8W4dPeydzzXkG1D2br kVRzhBIcK1UvZT+UCQY65Dl8ezpS61vsE9c/RQKJDQZGKKRQ8s6C9fvJMVT607d6VKCU h9UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@interia.pl header.s=biztos header.b=PU2GQvRg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w32si55719304pga.337.2018.11.24.01.04.40; Sat, 24 Nov 2018 01:04:54 -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 (test mode) header.i=@interia.pl header.s=biztos header.b=PU2GQvRg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728295AbeKXTJF (ORCPT + 99 others); Sat, 24 Nov 2018 14:09:05 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.154]:45955 "EHLO smtpo.poczta.interia.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbeKXTJF (ORCPT ); Sat, 24 Nov 2018 14:09:05 -0500 X-Interia-R: Interia X-Interia-R-IP: 188.121.17.172 X-Interia-R-Helo: Received: from x220.localdomain (ipv4-188-121-17-172.net.internetunion.pl [188.121.17.172]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.poczta.fm (INTERIA.PL) with ESMTPSA; Sat, 24 Nov 2018 09:21:15 +0100 (CET) Date: Sat, 24 Nov 2018 09:21:47 +0100 From: Slawomir Stepien 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: <20181124082147.GA8213@x220.localdomain> References: <20181123235159.hh43xnvvwsil4on2@smtp.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181123235159.hh43xnvvwsil4on2@smtp.gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1543047678; bh=L1iUpS2Dny8BBvABpkcMc6lqRVqWZgWrk8jZ5TLl2qk=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent:X-Interia-Antivirus; b=PU2GQvRgd5CPDziivLTovDyAks3VPt3NWDQpm5JiRyHJDJF+yj7tvAWBGXOziPyfy iiU7Rtxl18fr1dxknv3q7WLRXgMYEI7b+s8+06soYQwGrutOrKC5DWqQafOg40Yv13 2BWvorSMbdRtCHYc7uDn2dweyABXj0mz/QRUxNkk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On lis 23, 2018 21:51, 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. > > Signed-off-by: Marcelo Schmitt > --- > drivers/staging/iio/impedance-analyzer/ad5933.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/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[] = { > > MODULE_DEVICE_TABLE(i2c, ad5933_id); > > +static const struct of_device_id ad5933_of_match[] = { > + { .compatible = "analog-devices,ad5933" }, > + { .compatible = "analog-devices,ad5934" }, Why "analog-devices", rather than "adi"? My understanding is that analog devices have "adi" as a manufacture part in compatible. > + { }, > +}; > + > +MODULE_DEVICE_TABLE(of, ad5933_of_match); > + > static struct i2c_driver ad5933_driver = { > .driver = { > .name = "ad5933", > + .of_match_table = ad5933_of_match, > }, > .probe = ad5933_probe, > .remove = ad5933_remove, -- Slawomir Stepien