Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp889524pxb; Thu, 23 Sep 2021 12:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyHqEC8kW9/ZC+wOtY/ZmCUAZilryyvEKQxbFmfXSau1Cf4PDRt412/Gx+5Dy4klB+BCDm X-Received: by 2002:a92:c5a4:: with SMTP id r4mr5095893ilt.130.1632426546681; Thu, 23 Sep 2021 12:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632426546; cv=none; d=google.com; s=arc-20160816; b=OZ1jCufyqVNMQ3K3Pmt5EoqK4BCdkIOgRXhwsc0ns4znmqhMWgvQwIjvvLao0InLlC ov/nmxJOnrEwD8e46kjr2B+Qo+u+wWlHt4jxL8vX5nlM+DLmARfv+FXZz48gb704Hevu Ovpmj0QbIea56a8+1k/wT82MRnai0ACWT2f/2MasDnnozJR4BktUmAVqACfWTfEoyh/k AIZ9wX2DvL3BpUz0UB8/8De45yLWQMx2YhRtT6Pfv9O6VnHppfGL0fDjM0iW9g3anG8A Di4j+Gr2XPgQyibuszaUPLJ59FuuK1m+j5MFLP5URabvHDCFojkIlwZ18sq1B4gLvaZB PXSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yaU+kCbLEqEaJX3R6kVU22X/oWgW2wQeWE88oc437Kc=; b=QNJaVUtJQO2BNPQ9Fy16gzjbZgVeAlibAahom7QJITS1PorHsmBQKCk9boTOcxi7E3 dW0ScOk+ZZT39rBmXf07PCs21wDupFYyVX5ejpIWYsaiKi82qZ0h0t9gaAFmM5sUsYEJ 3Hkuqx2fztZHd07xhMbcPk2fXrVTtgRJ/M3e7k/juBCQOPPwlsrDABNPzj3CkDRCEBoB c+oVp6EoBsbf/Km8YSDkNePc2vZ98lOLdoSb1Q/xiBi05iT7sLJhXZA7+3EfxY/+OZRa jjOCML8F/XF2Eg+7x082CyRwsWyG4C8x5SIHRyLX4MxPNdFL8Rde/ZR9t/eqnXDzfIl4 +0fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dh0ym9/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h15si7141955jaa.28.2021.09.23.12.48.55; Thu, 23 Sep 2021 12:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dh0ym9/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S243033AbhIWTtW (ORCPT + 99 others); Thu, 23 Sep 2021 15:49:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:46654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243014AbhIWTtU (ORCPT ); Thu, 23 Sep 2021 15:49:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1332461241; Thu, 23 Sep 2021 19:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632426468; bh=Wro8HRfNaaUv8dn7lEX+7BJqhSnnwHjfP70AyIyKW6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dh0ym9/3YMwx+NUfn2vuTTD3kJAJ/8yW2KeBlylJSh3/dIA9LZf7hu5B7JRmGNUnm ZcafgvOwNXpokYzor1m1YphL1ZnqFCvsDR5ri5chfOJNwLqCt19PPsGUKDYN5g0Z5Y IOg0rIq41y4HUlJgCuzphW1NDbW7yxb7+/jeVru43R0n1vIdnevLNxhv8JhH3CYDjJ 6ntA0W2Pmo0YE9aLEUFBPa/wroGkuH0inV/vmMefdAPOX9C9+P+glpwHv6yqkv1Iv2 tBq+f2ruxmGwq/JMmPBSUGxQK69Pw6mP2zsm8tON9ObODnxthxJ+EuM5W0viRn8Mdt 285DmmDqa/KIQ== From: Mark Brown To: Lee Jones Cc: linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH v1 3/4] mfd: cpcap: Add SPI device ID table Date: Thu, 23 Sep 2021 20:46:44 +0100 Message-Id: <20210923194645.53046-4-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210923194645.53046-1-broonie@kernel.org> References: <20210923194645.53046-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1265; h=from:subject; bh=Wro8HRfNaaUv8dn7lEX+7BJqhSnnwHjfP70AyIyKW6I=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhTNmjoZA8LDI9qdZbdHv2MJq17MrUaXrtk+qDzen0 6ff99PWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYUzZowAKCRAk1otyXVSH0NBKB/ wLW5rVKUfhgVhxRkmBdZJX/VVVLcZuhnSNrepHsrNSO+bg0xyORQ0DS6nUABkZI52vEZJbbh4VJc7l t3sAaKgc4+kS4bg4IzFSthuW/rr8Lh8FSFN+XgPUnWxiXQ9FgfCyjnYSb8Tq8FACnV5/y/oiAV7f+d 4Fx7UnP8xmUwDmeN/ahvPRvXkr2NcC75rPXULKybouqFCCrI9ylEsAtti+d4vMJ62uBJel3uATm6Jt K+8Irwc4UFjI43RJLXC1a+2K6dCDw16+iT8EO90DLctOguNt7VFCGUyERWL29fDK2mSvrXtLn7WFMh nKLM7ol8Ra/pxJ49lwWBF+0DhggmdY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverted, so ensure that module autoloading works for this driver by adding a SPI device ID table. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown --- drivers/mfd/motorola-cpcap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/mfd/motorola-cpcap.c b/drivers/mfd/motorola-cpcap.c index 6fb206da2729..265464b5d7cc 100644 --- a/drivers/mfd/motorola-cpcap.c +++ b/drivers/mfd/motorola-cpcap.c @@ -202,6 +202,13 @@ static const struct of_device_id cpcap_of_match[] = { }; MODULE_DEVICE_TABLE(of, cpcap_of_match); +static const struct spi_device_id cpcap_spi_ids[] = { + { .name = "cpcap", }, + { .name = "6556002", }, + {}, +}; +MODULE_DEVICE_TABLE(spi, cpcap_spi_ids); + static const struct regmap_config cpcap_regmap_config = { .reg_bits = 16, .reg_stride = 4, @@ -342,6 +349,7 @@ static struct spi_driver cpcap_driver = { .pm = &cpcap_pm, }, .probe = cpcap_probe, + .id_table = cpcap_spi_ids, }; module_spi_driver(cpcap_driver); -- 2.20.1