Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4071596yba; Tue, 23 Apr 2019 14:43:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9gpwlmCiDGjiKmAPdY6LjzbbsD+c2ygz7OIZWRs51LXeODy+qXR/X3PmNXU1WbMRAIfJ8 X-Received: by 2002:a17:902:e281:: with SMTP id cf1mr28673306plb.13.1556055789365; Tue, 23 Apr 2019 14:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556055789; cv=none; d=google.com; s=arc-20160816; b=eO8gAmePPevbdGbmwopYwMG5dL2QZdlj+GDZyqR2JcNRi2x/2fnLOEVhe82OnTVYji SRajc3URSvAZrU8aTYghCPpnY3w4EQ8Hy9WcweIwHfWJ08La8VE587gs0qRm/6xB9K6i FWUeZYIDjTC9yztX4UxF/RYLPL+QKHx1Z2f6ZoeQX75D/B/dIL66RRwJwUau1FEtelsA FliVAOffWpQgXDhOKYN3qIeZVX4HsKfprlZb1FDoPJSZdZWhTWCp+98Ks8sBqufQ77hs 3r/2Y9i5LSR1U41hQeWXZaBRYpOU9LIGpX90jn4RjcVc7n4BMCrAo9TncLAIh27VBMhI 0cyg== 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=TbVR3poIYZWQSIC2YhkiQWBZSkY7aCtM0WVr1BRU9qY=; b=NLfcYuxIPWfN0mbwPPMjGR03C417YsQttRDRwjpSmFlQicNM9I4ltRl0ClLcmj+eyz AsBf45ohit25wwv7j1k5hWsQ8wDcaYrP2GKp0eObuQ+j5GuLOR7Rp9xAwGZ6KG/Q0wLV KwfNWjmIQ0HiV+/tNzlk37Taz+nPfH8Fy6Dm3IS/N4j+K/AYJKOp1C8+QzU9bzRtdxKI YGY5+lfF4Bbe7EqjQH+DWR//LzueMg9+tzH7j+nXnFYXIchDc1olNPiupimxC6NOLJM3 E2mplS1HUwnjIlFUOSEsT9Fh6B1FQEVQdhIH4YSJ56lEpQpg/WQdSmyp3ovcj1AAuqev +e6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dJJjFEUo; 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 g14si4036378pgd.551.2019.04.23.14.42.54; Tue, 23 Apr 2019 14:43:09 -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=dJJjFEUo; 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 S1728188AbfDWVlv (ORCPT + 99 others); Tue, 23 Apr 2019 17:41:51 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:46249 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbfDWVlu (ORCPT ); Tue, 23 Apr 2019 17:41:50 -0400 Received: by mail-lf1-f65.google.com with SMTP id k18so12874216lfj.13; Tue, 23 Apr 2019 14:41:49 -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=TbVR3poIYZWQSIC2YhkiQWBZSkY7aCtM0WVr1BRU9qY=; b=dJJjFEUoe0NPCcDTkbfxiR7GESFo/tDc9+9omEvNbvcIMjcSQngH4A7tCUb6p/f6JR WvMlrFjLlQ742Xyc9h83Kt4RXM8K3QzbNB3mW00mvla4aMJzwjrtgv8ao4oVWbW4Zu7X +ocu2lvOC+NhmPVpAJ9m4oFrv8CI+9out7up72vaweOkQWJ17fXQpvHLZp2KyyYjyjjy J1f0yizMViO5Cq4r7yWSmGLHuONsaYNx6XiH4gx6ZY2Xb6IrjqKT71f3492ci0fP1iZO aK5LVGMDNAFT6PfGtML/vu7l3jQnISXD8fGH62aeFUEtH1QbUtOH+fxCAQLv68GaGlmz JNew== 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=TbVR3poIYZWQSIC2YhkiQWBZSkY7aCtM0WVr1BRU9qY=; b=qC7PnOHQlEaeGfEZ7yDrFHm03Z2zE8TrbkHfkEvdcMLVhifhJcAcG0W6wj04NGaXsV 9fjUy695uEgAmXQlAmyWnYFiwVwW7hTFu/r5vGAsyEDX+r5nexCmA9EB7vHYp/N4cJ2R qymmn12RUaqa8YZVgsvVh0MS+w4V796e/cpS/4qHxgthc2V97AIUzqmdha20fthVjAo3 WlTvN419RBygqk0hnrBdtrehsejI+lvl4kVEVorUn4yzNwZFuqmsf4bjL3OGWszMvpss YPs6tkQoebgofd8mZFC2Kzdns4uR3QWnD6D7Yki52ta1g3U1aVvyQJaQE0B7gW9e08K5 oVIg== X-Gm-Message-State: APjAAAWcJB7a8xR38eggKo2AOgmcqTA4dTXQluqtRLzyRtEsDAZqfzj8 75+7ty0hXSDgWX8UgRlEsVk= X-Received: by 2002:ac2:545c:: with SMTP id d28mr14884155lfn.144.1556055708492; Tue, 23 Apr 2019 14:41:48 -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 l22sm3601691lja.97.2019.04.23.14.41.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Apr 2019 14:41:48 -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: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: adxl372: declare missing of table Date: Tue, 23 Apr 2019 23:41:37 +0200 Message-Id: <1556055697-14723-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/accel/adxl372_spi.ko | grep alias After this patch: modinfo drivers/iio/accel/adxl372_spi.ko | grep alias alias: spi:adxl372 alias: of:N*T*Cadi,adxl372C* alias: of:N*T*Cadi,adxl372 Reported-by: Javier Martinez Canillas Signed-off-by: Daniel Gomez --- drivers/iio/accel/adxl372_spi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/iio/accel/adxl372_spi.c b/drivers/iio/accel/adxl372_spi.c index e14e655..3ef7e3a 100644 --- a/drivers/iio/accel/adxl372_spi.c +++ b/drivers/iio/accel/adxl372_spi.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include #include "adxl372.h" @@ -37,9 +39,16 @@ static const struct spi_device_id adxl372_spi_id[] = { }; MODULE_DEVICE_TABLE(spi, adxl372_spi_id); +static const struct of_device_id adxl372_of_match[] = { + { .compatible = "adi,adxl372" }, + { }, +}; +MODULE_DEVICE_TABLE(of, adxl372_of_match); + static struct spi_driver adxl372_spi_driver = { .driver = { .name = "adxl372_spi", + .of_match_table = adxl372_of_match, }, .probe = adxl372_spi_probe, .id_table = adxl372_spi_id, -- 2.7.4