Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1728997yba; Sat, 27 Apr 2019 06:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2MMOgUZOSDBsIeKs5rhmZayQKX6qWG6zH6dXvBNdgJDGMTlsvsKt85sM7GkbOs2+78pjE X-Received: by 2002:a63:fd06:: with SMTP id d6mr49470750pgh.183.1556370017043; Sat, 27 Apr 2019 06:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556370017; cv=none; d=google.com; s=arc-20160816; b=pMS9AhxCCJmQReEW6Rgz10yWxqCXXXkxIIV2YQCoyxzIjo7T7rmEbsLaV/gnEeDsLE xN4Falm3iDO3/hkThl35Jdb47sC+J/dsjCZmrEyrBtWT0n1Ap96TzRIGpCHjakueOTrD IM09dJpJg+fKraMMsXiyqT3mN6VEWO66/63eQUFKFWQJPyqrrwwLFooOO6FBaAe/bEEd 12RCQUyGwdZ/j6t0mVK/OAxnQN82XjRAY1PGyHJWVqgJpNTHQAurTUUTHXdE3rw+DZEG pmuXhgtwYpBSW4pxNQI23H5dKsnL2XDlgViQ/FOmxfYofNz6/2rhA9eUL8qdSMvxuh9p ySKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=SdUyyZYS8c8L5UrSRmf9C8Svt+Lw8X50BwpxWm2Ivdc=; b=ewWNI+l9y576ePZAh63xHAJeQ+jw2/GH+KRCpnfCbTX9OeD3wW+ydAlK2lPV4yldqY m57LJGLv3yE1KkDsaxHSnaGrfWnX2UDlFtpcCveFlBe5R+wZLJOyESBrFdp0yejWtEKE LJmtGKTPXpXLBK/rOvlroAK8TI9C9t/KJbEd6FkNYZwHtqyYL3ODuRdcVMXJwzV0PvQX vh5Ksma+zqU+Dsws1L+ioLu+mJIWhKKjE6eL9kGGDPsmHdz+lLVdxQ/qMAsLJMqXVgRs 0ftKssCPeoez3p1hR4M+F7zk+XqVKEYhiBsvMygxQwVQJrcnMhYh3Rdn+Hmj43GBKVbf oOoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tOmLf8J/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si4598448plk.196.2019.04.27.06.00.01; Sat, 27 Apr 2019 06:00:17 -0700 (PDT) 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=@kernel.org header.s=default header.b="tOmLf8J/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbfD0M7N (ORCPT + 99 others); Sat, 27 Apr 2019 08:59:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:58186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfD0M7M (ORCPT ); Sat, 27 Apr 2019 08:59:12 -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 341312087C; Sat, 27 Apr 2019 12:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556369952; bh=SCMQ+UkQFCeEOlSoiyp8ynwOrB4RzkdmSZX/WHkprsE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tOmLf8J/SQRk6PiMizBtZB/sNTgbv5YFKb57LtEtb5UaunXHd73BQ5rN0MiOQaPJX IK6q9Tp7zAtQcwpHQG+iV8PjFmK5YVqUFz2p28IU5LvecuEEpGKgUT9RRb/6ApplQk MPCoj1zr9PEujz58neuBO9V7KKp5l4k9TxH5b3Io= Date: Sat, 27 Apr 2019 13:59:06 +0100 From: Jonathan Cameron To: Daniel Gomez Cc: Stefan Popa , Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:ANALOG DEVICES INC AD5758 DRIVER), linux-kernel@vger.kernel.org (open list), javier@dowhile0.org Subject: Re: [PATCH v2] iio: dac: ad5758: declare missing of table Message-ID: <20190427135906.455c468b@archlinux> In-Reply-To: <1556055718-14782-1-git-send-email-dagmcr@gmail.com> References: <1556055718-14782-1-git-send-email-dagmcr@gmail.com> 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=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Apr 2019 23:41:58 +0200 Daniel Gomez wrote: > Add missing table for SPI driver relying on SPI > device match since compatible is in a DT binding or in a DTS. > > Before this patch: > modinfo drivers/iio/dac/ad5758.ko | grep alias > alias: spi:ad5758 > > After this patch: > modinfo drivers/iio/dac/ad5758.ko | grep alias > alias: spi:ad5758 > alias: of:N*T*Cadi,ad5758C* > alias: of:N*T*Cadi,ad5758 > > Reported-by: Javier Martinez Canillas > Signed-off-by: Daniel Gomez Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/dac/ad5758.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/iio/dac/ad5758.c b/drivers/iio/dac/ad5758.c > index 2bdf1b0..e8eaa48 100644 > --- a/drivers/iio/dac/ad5758.c > +++ b/drivers/iio/dac/ad5758.c > @@ -11,6 +11,8 @@ > #include > #include > #include > +#include > +#include > #include > #include > > @@ -904,9 +906,16 @@ static const struct spi_device_id ad5758_id[] = { > }; > MODULE_DEVICE_TABLE(spi, ad5758_id); > > +static const struct of_device_id ad5758_of_match[] = { > + { .compatible = "adi,ad5758" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, ad5758_of_match); > + > static struct spi_driver ad5758_driver = { > .driver = { > .name = KBUILD_MODNAME, > + .of_match_table = ad5758_of_match, > }, > .probe = ad5758_probe, > .id_table = ad5758_id,