Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1728194yba; Sat, 27 Apr 2019 05:59:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHo/TaCCGNvyo43J+Tibidn0i/mQpH1bd/22PkWr35AwD41HlwlCCNjGXq2IQIVARBoYZ0 X-Received: by 2002:a63:ef46:: with SMTP id c6mr32945201pgk.392.1556369952739; Sat, 27 Apr 2019 05:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556369952; cv=none; d=google.com; s=arc-20160816; b=mKkp5IazE12vPasF61iRZGa/Q7GHnO+VUvZGNoFg0VcJXLacoHps0sLHcFQDivjPXk t4wEyQ5U+xuoZvNsv8Q8pnJOM/h/35dcGj6Ap5eRhX/sPgpideB46Z2xnZgglWtHBvT5 dDOwGCELgHGwJxBDtRa+E/eWKoRIu9wUoP0NPIyTxLcHgKfEbVnKW3QFafjYPLsyBJQy JGRMpYl3vR/Cq7vrTCubRk2flSJdySfRgAn30H13NDxmtemWuOFZXZjBI7oliclGqiDm vpd5onJ2jetEW8fC6qtu0OzLi4zCYdbhgS04K2qYhOzbiwanvv7FHZRx/K0mvEKL2TNI KXjw== 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=yF47vlu1WeV/sncYRs69m226kaKl4DkhDIAVS9BNaeQ=; b=SQWP0x2uU6ZbOHDwinZinFcgwVZaz0h1ECD/bjRMCcmxbEI2RnOyAym+o5jYZ93NU/ 5AtfB4bPIiNjYwYGXv9FNQ4drorC6mjVJast6BewN2nAW6KI6zMEmJe/3rkZi23MnMVY xwvRVehHJZlXJGQmtvRJYqx3lrsSAK/6mnB7CjM9YXAUAKp97nf44TouRb+nS1jWwiFT ilbgG7iTY/VWo5L2KdULqURbX6fFGnE2uYg1yd0iAKdjTLsyScQwZ70npmvNR6sBM85D TUECYkIfEafOCXz4l86uOBNKqHqHqBrRWn0BOJkd/Ah2OeErQUMqCTLQrh/wgFobvWVi eB9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E2nTilpO; 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 gn9si1616137plb.394.2019.04.27.05.58.57; Sat, 27 Apr 2019 05:59:12 -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=E2nTilpO; 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 S1726953AbfD0M57 (ORCPT + 99 others); Sat, 27 Apr 2019 08:57:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:57824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfD0M57 (ORCPT ); Sat, 27 Apr 2019 08:57:59 -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 3803E2087C; Sat, 27 Apr 2019 12:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556369878; bh=u1MZzdayxtERIFHMbtGhNUz7kgsCpba86bQZy6SbmMM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E2nTilpONA+R746fWElEOBdXq4xh0DCgB8VMDkbiDJcsz5RjY9k72kZpVltnYndjk 8SrIXUL11j02RdWNhmcDef8rQlxOlm63qyc4QYIhyGWhw8LWT+i3T7oOCy1YMZBmAP KXpUbzV5p0Sqvt4Hxoem+8TdjdPZ8Wjn0aNsbVwA= Date: Sat, 27 Apr 2019 13:57:52 +0100 From: Jonathan Cameron To: Daniel Gomez Cc: Stefan Popa , Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list), javier@dowhile0.org Subject: Re: [PATCH v2] iio: adxl372: declare missing of table Message-ID: <20190427135752.29d41c8b@archlinux> In-Reply-To: <1556055697-14723-1-git-send-email-dagmcr@gmail.com> References: <1556055697-14723-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 Tue, 23 Apr 2019 23:41:37 +0200 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/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 Applied. Thanks, Jonathan > --- > 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,