Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1728559yba; Sat, 27 Apr 2019 05:59:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyA6/hVgtSA9FBclEjqos2m6ektGaf85ivAhvyON1faa6PwqDxvOHu22ZmAqaIRZXUf3R9Y X-Received: by 2002:a17:902:3283:: with SMTP id z3mr53272369plb.281.1556369987664; Sat, 27 Apr 2019 05:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556369987; cv=none; d=google.com; s=arc-20160816; b=yl97mAQgf4gxS4zm9aOMc6IuUohdy7CELnPDq4qCjAHAFs3LcE22EHdw6A/m4hRtFr ZX0t+ghijgm9xfcSn1SW7DlgpNj2jkBntxnA63/sZ1cqjyO0LDwD11hYyMDTiGrrDQNM S9J9NshyreaeaYMa8OdkiZ1DIxRQEfM1I5tbdoL69PJsAGfn/A5ALZ3TRvbBbu8FX/HM Y6DB8BWtsWQb1sbEcQb3uFq4atcEsNxCjRXuRmIzh791GJxA1LqaVnlAur8txj65wAc5 5/BbNn7LiPTMdB0O8R4qhNzYSd0CSioC+khodBCY9+/iIWl8eKIayp6bVGThB6/tWG6K 4MsQ== 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=1/lTNKTT8B/9cZJ+MdXZpPCxrjAKIkj4QRtCoEmk71M=; b=YaJfelhLk/6WGrpqmuj5uHnjT28OvI8QaVEaJAJQxlcH5wP2KfJH4A3BI+CZzFgSVV Oo6UN2+A+2FPsA20LoJnKolNxoCgMCnG3WQ9xEkDGnZzc9jimQjnB7suhi6G4A7Np/Au n9ksuaD6RuMMZ+sakdb8WkRVKwrF91cT9F9Wkf8AQKjgSB9De5tyThaqcq2wVgCLrRHp 1feLQRdSo4EEhbs+ahDUm4SuPba/7dugHE4Pvqg+KElVct/wIat81UXFOYATM8AXvdVb Fq2QmRZzKUAdznpuoOWms27ekoI6d23KfdSeAirBGUMf9wavDMf4w89e94ql3c0QE055 MH3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Zvox9Mpt; 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 i96si29073771plb.331.2019.04.27.05.59.32; Sat, 27 Apr 2019 05:59:47 -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=Zvox9Mpt; 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 S1727707AbfD0M4y (ORCPT + 99 others); Sat, 27 Apr 2019 08:56:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbfD0M4x (ORCPT ); Sat, 27 Apr 2019 08:56:53 -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 D7A9B208C2; Sat, 27 Apr 2019 12:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556369812; bh=Lz6otYx7mFcj2Y/1fzaDIfrFjPlmohwy1PTAiBZEAY0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Zvox9MptHNGUzMG/+YrVYCyroAup7JSzs8fSsrq+y2JRbixRwZg1xErIsvMXrD4pA 1D02TwnznPfUNEjgI7k+i0DXcASo6SMKnRs3VOcjGs2aJFoyz89j27XMue/cOcTbCp OeSdamrDAI4903LZFbyNfqXkY4LTLAeTvrqFFzOU= Date: Sat, 27 Apr 2019 13:56:45 +0100 From: Jonathan Cameron To: Daniel Gomez Cc: 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), javier@dowhile0.org Subject: Re: [PATCH v2] iio: accel: kxsd9: declare missing of table Message-ID: <20190427135645.53cb78f7@archlinux> In-Reply-To: <1556055659-14658-1-git-send-email-dagmcr@gmail.com> References: <1556055659-14658-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:40:59 +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/kxsd9-spi.ko | grep alias > alias: spi:kxsd9 > > After this patch: > modinfo drivers/iio/accel/kxsd9-spi.ko | grep alias > alias: spi:kxsd9 > alias: of:N*T*Ckionix,kxsd9C* > alias: of:N*T*Ckionix,kxsd9 > > Reported-by: Javier Martinez Canillas > Signed-off-by: Daniel Gomez Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/accel/kxsd9-spi.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/iio/accel/kxsd9-spi.c b/drivers/iio/accel/kxsd9-spi.c > index b7d0078..3027917 100644 > --- a/drivers/iio/accel/kxsd9-spi.c > +++ b/drivers/iio/accel/kxsd9-spi.c > @@ -1,5 +1,7 @@ > #include > #include > +#include > +#include > #include > #include > #include > @@ -40,10 +42,17 @@ static const struct spi_device_id kxsd9_spi_id[] = { > }; > MODULE_DEVICE_TABLE(spi, kxsd9_spi_id); > > +static const struct of_device_id kxsd9_of_match[] = { > + { .compatible = "kionix,kxsd9" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, kxsd9_of_match); > + > static struct spi_driver kxsd9_spi_driver = { > .driver = { > .name = "kxsd9", > .pm = &kxsd9_dev_pm_ops, > + .of_match_table = kxsd9_of_match, > }, > .probe = kxsd9_spi_probe, > .remove = kxsd9_spi_remove,