Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1522435yba; Thu, 25 Apr 2019 00:56:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRbTO1DgqBP7QUWJP+gSJGaR9cQMw353BrJMncbJGek7FbQ6z46lkdKFxwBiKrs/WzqV+D X-Received: by 2002:a17:902:442:: with SMTP id 60mr38245654ple.107.1556178960491; Thu, 25 Apr 2019 00:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556178960; cv=none; d=google.com; s=arc-20160816; b=zYeZ3qW9+v49FaC9ed/9n6fPsW7puFa/WZy4kZT6DIeqixq1iQkVS0XlESIPiLOE4A DWV05SIHDsD6Q+7PBCJB7j4OG6LcN1xpuMtNWU+07SPd95ZGDxMh7XdtGqcmH2M7weCW 8YfpdYRWjbtRmArzqqaR7n8hoC1hCfWbySrK2ZCgMNjtLzvBrkFalh6H3nQtxCv7MSo6 7xBoLrFOGst9d9dkK18amKuFSIjCg1jlUQ+JVJBnVhDBTENvOSj7rJN/cg3FBdbSXCtr zT1iSH1cZOIdi8tzq23pa60Z3/P4t7a09zd/wTFNmtMpuJnKUEdCIImnR0h+XW3Hnrh8 dZdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3bpnT0MKJFDMp8yH3bNjp+BARmsLopErc5UrP8dj8Fk=; b=SGrQ2mjhcnmjGPTm8DD6FS+uNlvuD7IwARtC0TF2XnrcgasXJ/cDXoejOO7axlMSHF QQI0HPc5PLx6S5IOkLoG3az2gaN0mw9LLqZ3L5SR77TZROytwx/DaobcPN3W8N4wsekQ inSu0H/qK/Kce9b8SFJ7yiQHYe048R4XZxPI2wPlk7SfvVZCL5/MofIH8kikZjAu72Vk sbJ5+NepIm7PqyQHUK77W1J+NhHhcGqSkXboi2/3UyR1ZtVxoaBAFy/RQCYrY/0fSizk l5DfG0zsTk0d+ciTX7xDfIGIF5WQ9bATDiP/F0naFIDiq65lscHSA1iT63rVVkwtUKfH r3Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=qQs56Uko; 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 d138si23563311pfd.178.2019.04.25.00.55.46; Thu, 25 Apr 2019 00:56:00 -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=@konsulko.com header.s=google header.b=qQs56Uko; 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 S2388048AbfDYBfT (ORCPT + 99 others); Wed, 24 Apr 2019 21:35:19 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:40469 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387733AbfDYBfT (ORCPT ); Wed, 24 Apr 2019 21:35:19 -0400 Received: by mail-it1-f194.google.com with SMTP id k64so9572164itb.5 for ; Wed, 24 Apr 2019 18:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3bpnT0MKJFDMp8yH3bNjp+BARmsLopErc5UrP8dj8Fk=; b=qQs56Ukocl78Sf5FuGfxht/IptjPjK+pks9kLVauKAGQJud0FXwEZiSmAapugG+0uB GkxbjbIuN1E+6GTaNxrMogrZL/G2BpRDkO9Z7nfp5ZCVaivUk23l7c7ZbPtQEiBJ2PZq Uq+sANwEAuSRVA1kZf9HZJHifa+0udTWlR8Y8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3bpnT0MKJFDMp8yH3bNjp+BARmsLopErc5UrP8dj8Fk=; b=mlt2GuI0aF3NOke+So29tmtA3k2l62KVoofkyPN79n0vwUr+NJQ8sE2xcZgCms1Pja dK6W9R7tWWCZABug/gplEe/WE/nN1misQy1P6TRULRmRelxzH8DfpZFFFUyWMCeqBT5j xue/S7yufvfhSXmF6uqqZZLjVNtzozYZdVEfQDuXAYeixXG3/OydENnzN9kVdNym08cB b+7JUOd6War5isMgmJqFmZSyqokesLb5BzgDbkmDChIJyxpxsTOid+bzMfTTojbDDbEA tX3uhC0+1YpzysG/p9biMZSQXBg/BtfOpDeIaIl7nrKOYCBfwADEYsyJe81KfWJNjJBk Tuog== X-Gm-Message-State: APjAAAWsfWZraeVIfgIjCbrwLAJkyvXfiBXRyyOq+oWfgQSTL8NqJaph sqDiTDbvfJwxIXa2TDDFkUlUn+iZ9i7ybk+5IBuK1Q== X-Received: by 2002:a02:c043:: with SMTP id u3mr15408649jam.35.1556156118300; Wed, 24 Apr 2019 18:35:18 -0700 (PDT) MIME-Version: 1.0 References: <1556055738-14838-1-git-send-email-dagmcr@gmail.com> In-Reply-To: <1556055738-14838-1-git-send-email-dagmcr@gmail.com> From: Matt Ranostay Date: Thu, 25 Apr 2019 09:35:07 +0800 Message-ID: Subject: Re: [PATCH v2] iio: temperature: maxim_thermocouple: declare missing of table To: Daniel Gomez Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "open list:IIO SUBSYSTEM AND DRIVERS" , open list , javier@dowhile0.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 5:42 AM 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/temperature/maxim_thermocouple.ko | grep alias > alias: spi:max31855 > alias: spi:max6675 > > After this patch: > modinfo drivers/iio/temperature/maxim_thermocouple.ko | grep alias > alias: spi:max31855 > alias: spi:max6675 > alias: of:N*T*Cmaxim,max31855C* > alias: of:N*T*Cmaxim,max31855 > alias: of:N*T*Cmaxim,max6675C* > alias: of:N*T*Cmaxim,max6675 Heh oops I missed that somehow in initial development. Acked-by: Matt Ranostay > > Reported-by: Javier Martinez Canillas > Signed-off-by: Daniel Gomez > --- > drivers/iio/temperature/maxim_thermocouple.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/iio/temperature/maxim_thermocouple.c b/drivers/iio/temperature/maxim_thermocouple.c > index c31b963..c613a64 100644 > --- a/drivers/iio/temperature/maxim_thermocouple.c > +++ b/drivers/iio/temperature/maxim_thermocouple.c > @@ -10,6 +10,8 @@ > #include > #include > #include > +#include > +#include > #include > #include > #include > @@ -262,9 +264,17 @@ static const struct spi_device_id maxim_thermocouple_id[] = { > }; > MODULE_DEVICE_TABLE(spi, maxim_thermocouple_id); > > +static const struct of_device_id maxim_thermocouple_of_match[] = { > + { .compatible = "maxim,max6675" }, > + { .compatible = "maxim,max31855" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, maxim_thermocouple_of_match); > + > static struct spi_driver maxim_thermocouple_driver = { > .driver = { > .name = MAXIM_THERMOCOUPLE_DRV_NAME, > + .of_match_table = maxim_thermocouple_of_match, > }, > .probe = maxim_thermocouple_probe, > .remove = maxim_thermocouple_remove, > -- > 2.7.4 >