Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4071199yba; Tue, 23 Apr 2019 14:42:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsUv3mIWDC+uExBYBdit3aqZBUiGKtyKCt+CQ8Ykok2D9Mn1qgsLohH90uWwGmvhL/tzTW X-Received: by 2002:a62:ae13:: with SMTP id q19mr10831638pff.152.1556055755626; Tue, 23 Apr 2019 14:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556055755; cv=none; d=google.com; s=arc-20160816; b=wnUpB6SaafjLB7cUJDpSsBFUvuNWe7qo0RfRrI0LpQvWqW/Q8cy6KTfVX1HsCSWHW+ 5eIdfwynD5fA2v9FEyQs2QD5raAvf/6ANN6QBjB7gIT+9QD0e1/W4cp5ds8Xvr1yd9Oq HhnRHjWp8jVuCr033h7QD13V1c2hjgViBW+DQu16v5dIq7JqUaqcA6wK8RHaMcN4qZW6 69jgqlD3cUIz/aO7mV6Jl5CfATRfYWDoaE4E5mbknbznjuO/rDGyh6gQ3bemC8fZYsls aDZoOhv4L99lnp1er4CsDw9Yq6HyVI0de808+czX6ouIO1EwIER3zVILVanApnuuYP4E rwzQ== 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=dciPz5i6iUOQEqd4ga8rNmP9MhHw7ebjWpQwl/EYfys=; b=PD8nFRj42B8E8JU/CzLAjaqeEjUEpoW6Jp0I+CN7KJaHbAbIG8Z35C8+aYBVVYbuCR BTuBtLUVT55wpl+TbvQwgqePeWFSx3SQI2Ws28Skpk1YAnhID855vyJAGODmw2/3WBxs /4FArX+DTpWAUgxxuyiYM/VfPqUDJjrJPug81elx8+ZSsp3W4ZFRF3AWyRyL0ZNyqqOk NawjzYX+mw6jDvFWVbAGCHPQegfYg37CWOYqJ1q0lR4i5eBVAHxlTBmWNYJ2DbhyxKJS 1KN1ZDSYqajHHKtcMMNEdDtA6CZI49wQqJWbF4mvtAqZYoj0MMzmY/voBo+PGnRVN+9r 3qPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pxC3zisH; 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 q7si15831043pgh.541.2019.04.23.14.42.19; Tue, 23 Apr 2019 14:42:35 -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=pxC3zisH; 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 S1728077AbfDWVl0 (ORCPT + 99 others); Tue, 23 Apr 2019 17:41:26 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42539 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbfDWVl0 (ORCPT ); Tue, 23 Apr 2019 17:41:26 -0400 Received: by mail-lj1-f196.google.com with SMTP id i186so947983lji.9; Tue, 23 Apr 2019 14:41:24 -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=dciPz5i6iUOQEqd4ga8rNmP9MhHw7ebjWpQwl/EYfys=; b=pxC3zisHehdHyB7pttEznE1NWYSq+qP2woYKXnOOItXCV9U1oZ8yLoMgBRROZ8x5ki on9V7lRSaen2Ht7dQ0nVOhkUQtpKQy6wz2Rpkwfe8oqjeRlnBBXbx+t2P6fBk6hflBiY ObNXmyM7Cjv4vxGtgeDJnQsQj+9Sqh39AK4YlO6rFxPCorYou2ZyDi5GpHE39u67hiFy nW8mp23QmGwU1oklZ97u0878TrrCIEjYP3s/WQkDRANkHidIFHDujCociAzXIeunMVGV hWPKCDmROQWNisDb8QvoCdDsl5+fnlyBaau1CgqHJegYYkOv+PVmJWmXVzEYIygIPV9m qalg== 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=dciPz5i6iUOQEqd4ga8rNmP9MhHw7ebjWpQwl/EYfys=; b=XZCKn3ObZQ3JoNFg7JH6cyYwszYZ38s/ckUx/EFcSezr4OySUUnQfG+CxYZGEPUjRe VBJZqTqo5Elpl0w6jKfiJI2V3e5gqf1L64THC+Huf+hhwvDrvzi41SV5Mq7u4mexeva+ Z6WWjWOwgbfaOfnRdbRSPST1CikO0tIVTaYWhxG4O7F/PGwvD8R9mXKlBcWNnUz143Zw wCP9yEppQV2OLLdSXydfd06l00bQhdYIeuKy62WzHaQi5O5jTele+pQ2QHaZfBTnFqXd MK/UOZF/sg6/RnZAs5/0XqCieS5x0xNSuNnzo0qr9NZHS2CHHzTphU7PnhUBicFQZ4d/ zSJA== X-Gm-Message-State: APjAAAX1TxMEQuWi85CzrW6jUjlrd32vRRe/iVwbHx7Wy6f6lmOznthu FP9ZoyYI4FXSVymXWzv9axo= X-Received: by 2002:a2e:7a03:: with SMTP id v3mr4259620ljc.142.1556055683873; Tue, 23 Apr 2019 14:41:23 -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 p11sm985798lfh.27.2019.04.23.14.41.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Apr 2019 14:41:23 -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: accel: kxsd9: declare missing of table Date: Tue, 23 Apr 2019 23:40:59 +0200 Message-Id: <1556055659-14658-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/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 --- 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, -- 2.7.4