Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4072905yba; Tue, 23 Apr 2019 14:44:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIsjrKCsBeGMKttooRBjahUIuaI5O4hHoViv4fATXsK9T0Idm10VyO8PO4dmjnsmBqD52X X-Received: by 2002:a63:6942:: with SMTP id e63mr26518073pgc.102.1556055890024; Tue, 23 Apr 2019 14:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556055890; cv=none; d=google.com; s=arc-20160816; b=Zk/MY/ok4Wkx6KWHf2gs5XlBZZJpLFeQYuDaVig/OKr/WzYzkOmJsLBrCdnVlGS0bz YGmcPbu50gT3+YaV19UqGUehlRP+QgS43GPW4eIyW99RiK4KzAEwlBOPqcCxkqEPqa1o 4tJGUXa0D0zeToYmPDQ2txg75TZdpC7DFIKKr64HStejdrP71hKFXbGiG8pXcaVwW5pn Hw8EugcKJmvUVuDWiZpenHOs6fef/OWl+eU/L9yZdKHU5gPoq9HrN3zg6iyt1G7C06iN EY5IkQMIaAINsP/KMnQAeRBuNfD6KcyefMsBpSbvDEHIK9rLG11l6huM6Z5XTGkaNsSC LRIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=txB+of63SNu46wpVXF+9lUHfUB1Dh2QUimcwaZfAJys=; b=rZwd4EvvqfV6IdEUQ2Frd6P+6PZHVEWPMcdul3t43DugBa407IH//Pm4QAJHnxhcl0 tOqZXohqIcJzCcNbwUFwmNMii7A5IYVh7doquR7bN3tBl5Jfva7dcPv+Ora0DNggIRdh N/3Uvmgnx+nfqwZZoLLOQvfqJSWfG0/XAF/TnH1k9eTwXQjJMrmxDLrnE+Y5Y6hsFbal HXpPU1lhVcrXlqs2IyZTeJ4vGxp6WslDKOuCW7ScoiM2a1K3ZGZi1hYfgFV0lhuv+TnP FT78aHk2vNhzLu/e+HGaz7aoGG9+XgwdDvfkGh5+YOzqXG3eXEIJ3CPIjfzj5iQE2GP/ 7eWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uWQmXxqT; 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 o9si15336722pgv.25.2019.04.23.14.44.35; Tue, 23 Apr 2019 14:44:50 -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=@gmail.com header.s=20161025 header.b=uWQmXxqT; 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 S1728247AbfDWVmL (ORCPT + 99 others); Tue, 23 Apr 2019 17:42:11 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37828 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbfDWVmL (ORCPT ); Tue, 23 Apr 2019 17:42:11 -0400 Received: by mail-lj1-f195.google.com with SMTP id v13so2307377ljk.4; Tue, 23 Apr 2019 14:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=txB+of63SNu46wpVXF+9lUHfUB1Dh2QUimcwaZfAJys=; b=uWQmXxqTfrdKvfTL5mYC0M+f1vG1vLoHE1rqPmLHLMxKtestQFEuwztfGqWgWETxZ1 08AWXNdViaZ0GNdi/789AHSSY/Ov9eG27guBxlbH7HeMAFAS2SWBpAIN0uLCjFV3t1gS HO6N6/tf5ybvbQymEa6fomTWARAPeXjen3n2LzndNSZDCGKRM0Rw8WcQZrHK4DOpn25s 3HkSII1YTL1rwmghHrGthlebTbFVzb6/XbyZUqVbgNd5iDooraAELph4sr6j/T854/ze NMTZptC+Gme6lErfWG4odYvBuM3AkDQ69+ofMm2lbk05GJqmZ6vRibb1z7nVNYQJmyPc knew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=txB+of63SNu46wpVXF+9lUHfUB1Dh2QUimcwaZfAJys=; b=gwzFMgZGmksFWhS8UryZutS2SKzcBloS14fpQ6rSRyilYZ0wlwPeiLSGj3QAt8Biso w/30SVLX82XkvvFdd+niu7axZF9j8mM++cKC/atuvtiyaa0y1JfZTk/7itBTaqAp5TqZ 5TULyQkVF48vbV/TW0AoHyUK9T4awB7OuBkzX+T5PDtbEttpMhte/xlRu5YLfePxXniI TD4fm48EEZ0v9Ym025PCcsuLkFgg5R9LeBBM2gPr9CJogjvMyLoFbUOX2w6iCI9LBPEb 6fAir5KaVC0Bgar91WqWbjsI//2KX1oCvL1OIZvJSHp5xKLDXodbVaZPIdrI9lNwh87k 3CcQ== X-Gm-Message-State: APjAAAVsjqXKwJbkLeMIRBoGWDObKyyldRWB5YgKtlguWXZfy3nsU6fD fbLFmx5Rodd6qu1bALWUt6U= X-Received: by 2002:a05:651c:c3:: with SMTP id 3mr15253081ljr.8.1556055729106; Tue, 23 Apr 2019 14:42:09 -0700 (PDT) Received: from localhost.localdomain (80-167-223-88-cable.dk.customer.tdc.net. [80.167.223.88]) by smtp.gmail.com with ESMTPSA id z206sm3991128lfa.53.2019.04.23.14.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Apr 2019 14:42:08 -0700 (PDT) From: Daniel Gomez To: Stefan Popa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:ANALOG DEVICES INC AD5758 DRIVER), linux-kernel@vger.kernel.org (open list) Cc: dagmcr@gmail.com, javier@dowhile0.org, linux-iio@vger.kernel.org (open list:ANALOG DEVICES INC AD5758 DRIVER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] iio: dac: ad5758: declare missing of table Date: Tue, 23 Apr 2019 23:41:58 +0200 Message-Id: <1556055718-14782-1-git-send-email-dagmcr@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- 2.7.4