Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4072491yba; Tue, 23 Apr 2019 14:44:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwepgirfNm/t+7v0+PiC011HhFpGEEakxsAuT1pYmlXmZPZPGpFtSHXabE/5oQZRYktSQiM X-Received: by 2002:a62:6ec6:: with SMTP id j189mr30337293pfc.195.1556055853645; Tue, 23 Apr 2019 14:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556055853; cv=none; d=google.com; s=arc-20160816; b=PRv3FmHNfLVd4o+U8BtdlbNctakmLOJttwT6beUMC1ygowhREmepYX1lsJyNW1UBSg 34iLvhJ9BO8a9qqdcTjg7RMGslbzUYeXWd3XgKqQm2/hLcyCAhaJoYQApcZkj71btnzM RiyHbPK5gjhxREoaiq9Rpzv0bzUWERirfYI3rOAeX/G9VmoESP/DJ20EoJJHAvV0D5ga mSB2l1lKQTOU7OAvKYYp+0msedVlj8FHwda5dJZxeQUq1ds8f75VVkfk0efpHL7aEqev akPzSlrMlYAmPi3YGaDnZizeuYL13aqLwJpdhj9/JbKfCqPzs8lWR1xGsGBoMsV3IZ5D 4bHQ== 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=xQeefpKrsCdhR8Xs6F2Qda/pkJ6VuhFW4m9YDLw8Nyc=; b=RfiMKE4d1OGn7RR5nmQO9MABX7TR4JHVMr8uPIIWvFwgwymlx4iRSdM1YJZhKEDxNG 7rDLePa0hCdn4jyMc7NdDJeU44jgC1X0q7imMUM0A+NNh8hVxV3YuWIA7/cuZ8I6+Nfn FGQPflf93Sv4VaOHP1Op+YE/k18dUe/rFpmPnJp48qQR+ist1D+uARM/SP+MWyVumUmq I5seUK1mqCCtjQXBf8cnhDr/ewp1rpKXM8cz/R/bRHipnjDBDjgACoC13f8Jgga4DgH6 w2rfXnxIdWNJUqoqLhf66IVA1C68Tjt5vs0oPgj4wvYi9X1XV/B8VBU3pgzVFK9Wgs2D OeMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kWqkMKGB; 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 v7si11399058pgs.387.2019.04.23.14.43.58; Tue, 23 Apr 2019 14:44: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=@gmail.com header.s=20161025 header.b=kWqkMKGB; 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 S1728328AbfDWVmd (ORCPT + 99 others); Tue, 23 Apr 2019 17:42:33 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42688 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbfDWVmd (ORCPT ); Tue, 23 Apr 2019 17:42:33 -0400 Received: by mail-lf1-f67.google.com with SMTP id w23so12886547lfc.9; Tue, 23 Apr 2019 14:42:32 -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=xQeefpKrsCdhR8Xs6F2Qda/pkJ6VuhFW4m9YDLw8Nyc=; b=kWqkMKGBjlPPZ6fmSXOi+1oWjAJ7kHz6lyaBM/7BY8iwqhhbH2xJHvOJ3dWldB4F34 EDtDUFFxqHSREoHWq+85X7QbEJ9wZzVffx12CDOxYHXRiPAj/9uqN7zuoMFaUIHMyrer iulMsJIuroHmcJ+F41c8UEzsx8YtSfudGA24n1vFrsJCtcp59fVFuv06xZo6SihAndlp 352ny8youL0VnXlmTO/ieklQQ2WcK1GwcrIpB48bVt5ke5u7DwseW/9Ich428Ma7GkCR C+CmDMbexL2/bAZHFM5C1WKhVHs3TqpLG2kBnbIOkDxIWrIqdWQOZZ5iX5SPn2IpG1GV H4Gg== 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=xQeefpKrsCdhR8Xs6F2Qda/pkJ6VuhFW4m9YDLw8Nyc=; b=atpOR0RKroBOupx1gdVcAxnJpT/bzD3UV00vDlLaJmMv9i/Sh4uA3Ne7Xdig5MAkLT Q8aqVvxHcwiMno6Hk0nK/OCDiznNEC+9LdLFMtj2JDBrzk4jOMtUSMdHmBVKYlLbsF74 gcmYNZDmRgz4Dg4ze8ckEvYkO7BlhyCdRoEtMxN9FdUnDqqyTiq96LrpDfyN/a5bVf+k MABe7ffO9+XFtjlut/ZmnO/zmoE5Z3+rnmqglVWfsU/G++rvWPWUEAEpzxhjLT0X/gRE /UxGijEDkoXdzeSKCBsnUJQqvklLDzAirLIXOgXOMWuF1kQ+I0YZwVfTy+PwGdvJGVg0 NwRQ== X-Gm-Message-State: APjAAAV0R5PSCQ4MByYRqPDIXvXVY4n8SijpfiVVzd4VhGQiCb/vHR4f VgFlQI4XU9ozaldJsf07WXq38viOlR8= X-Received: by 2002:ac2:54a9:: with SMTP id w9mr15065821lfk.125.1556055751453; Tue, 23 Apr 2019 14:42:31 -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 j9sm792244lji.35.2019.04.23.14.42.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Apr 2019 14:42:31 -0700 (PDT) From: Daniel Gomez To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Cc: dagmcr@gmail.com, javier@dowhile0.org, linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] iio: temperature: maxim_thermocouple: declare missing of table Date: Tue, 23 Apr 2019 23:42:18 +0200 Message-Id: <1556055738-14838-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/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 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