Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1726901yba; Sat, 27 Apr 2019 05:57:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzadzx8NJ7B1P7gBID8pbHA6fvEu5cw0V1Or14B9rdLk9EtdJ/HVVQjlmIhwG22kfZmD4ks X-Received: by 2002:a63:6fcf:: with SMTP id k198mr48421958pgc.158.1556369833242; Sat, 27 Apr 2019 05:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556369833; cv=none; d=google.com; s=arc-20160816; b=bovlYfUhd7qaaqNVnmez0/ddVTiOLKGsV9kR49KEj04tN175xxlVeHhhBSDpSbvjTk EkBeCe5kEjQjA1ZA5vgCQmiBSry56HBqZuQGwBE9KrmTvpawX3cFem79RInZheSEzVL6 L6wEwi1eF2KZRXH0EvsO8vuukVox7Infg/2KavWPF4Czn7Hlxr/H2QOU8s6kFlcy5//q UP+1siTFmjhRjrRLQ0rI1h1WTDJldoY9eJaZIufYI11dA0kcEE34CESkWepS1kL7QoGT 9lk1U48bKPZunetGC/gH82nDvjLqC8xDQvLFy3DRQut8Nc9+KI4OveR8N2hhHcfA9Dc0 7d0w== 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=bWU5m9PNTN6TcvDpeY/aUqLKRvhtXwAjUac+KRZ7y1s=; b=wLWwyQZAxzHiBQ1GCZS9dgoRtZfka6yYfDAfc4ZxtpTIuzX7akAgscRgCqoNu5KsBB PGiQLkyPRTt0lOtMBiXtXSJixh86rp6Ye8g8jgFHR6nC0K2QZYLjv1kCpMoiApDRvktR OMleNfgtGoz3gRru7TN7XBT2L++lCxFmnhATRrvKVIZ2aXkvSgN4oMbVJWe4eXH0wTn2 IidF1X/sBwH+EMqPOi8YOwUWuQcIsRIpUcQ4YwT/iwo7IKzvxnJcWAlNZdQqBBBqIBu7 Rv6fSOQ9xczwQUA37SVn+WACgK4vUILpyKZ5EWGxNCCrHhWGtUfYO/rF8m8QegTaeJ5t GjtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aTHD60nk; 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 g127si27074025pgc.135.2019.04.27.05.56.58; Sat, 27 Apr 2019 05:57:13 -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=aTHD60nk; 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 S1727632AbfD0Mzn (ORCPT + 99 others); Sat, 27 Apr 2019 08:55:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:56794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727620AbfD0Mzm (ORCPT ); Sat, 27 Apr 2019 08:55:42 -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 5052F208C2; Sat, 27 Apr 2019 12:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556369741; bh=hVmyG+1AvKUQGM0TnO9YzO1iCH5meTQ6M6O8sm/zFp0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aTHD60nk6dMIesU+YQJFMIsdD2QRFFzm7y3c7Bj9pWeQz0Px/r4kwo0rMrMQhdHDR IO5rzgxNnqdybtmu01nqkf1BJzx9lg+uQ4F+M4uvViHWqYK00hMvdFORuQ5NBAwIVy 0Xwpea7BY01DKmdQ3NwbAqEggNV9R/DIxevkCfiI= Date: Sat, 27 Apr 2019 13:55:35 +0100 From: Jonathan Cameron To: Matt Ranostay Cc: Daniel Gomez , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "open list:IIO SUBSYSTEM AND DRIVERS" , open list , javier@dowhile0.org Subject: Re: [PATCH v2] iio: temperature: maxim_thermocouple: declare missing of table Message-ID: <20190427135535.46b3f7e9@archlinux> In-Reply-To: References: <1556055738-14838-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 Thu, 25 Apr 2019 09:35:07 +0800 Matt Ranostay wrote: > 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 Applied to the togreg branch of iio.git. Given timing this may have to wait for the next cycle to go upstream. Thanks. Jonathan > > > > > 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 > >