From patchwork Mon Sep 27 13:41:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 514692 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp4131832jao; Mon, 27 Sep 2021 06:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHr0JJyCLyWDYnSy5/R9xUHN8pEeBlgMkTj3duroloSUjhxwNj5zhnP1/Zw2X6oYXjUAjt X-Received: by 2002:a17:90a:c792:: with SMTP id gn18mr20054786pjb.147.1632750115795; Mon, 27 Sep 2021 06:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632750115; cv=none; d=google.com; s=arc-20160816; b=zQm2eehsKnRiGswS37E11XcZBGQjBRrdbI6DcqphoMUePq4GuF3YRF54qjzhJtrf9X krcXDF5fUHEopNiQhgZMTsccCIUxIziLL4LReFTD1B+PkBBZ0ZhcRnINklAEJ8KyQRxh ezXdfh5mpwjgk/SRzOEFcZeFC32t4pRyD4qOd2s2uB1SnrKqVirz01jDq21EeRv19AwA K8BC2OmBDN6Zl6vkjJCV9szrU8GVsbo1rvUR1Cv/NgFsfBAYP/LIS3mqAFotCfSbEEMO syZqmb1yE0Jpj+sjkEQRCHG9SpDhJerUPnpyDcvFXI9J/ZDr3Mfhx55fGGaa131ClRLd SYow== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xBVrm9PIvms7etso+myGwNzGu9uIFnL1eU5oXi0A41Q=; b=EFBKJIDmInrBOSYQ4CiAzW/cMI0YFFzL37Y14uhgvroHc/rLBAIJhP7dcSRhWPJfOT YZ6PCYt5Ui8jJfxcqNP1VYR5J66f4wT+/Or/NZlxwPhtz0nPmEKWQaRlNq14zYNGyxze cC3Y8rLZR0c1F4VR0x13ipK42WeldqJV+sAsc84epthNB+Np8jeC1D5oLSQMKGRYwBGG d1rAxX1pFil1cJkuL0e7uhkJXf8jalce3IQKOwwYWUwHLV2XW0CTSSF9ClRdBMy1tBu7 JIVjqanD4FJlClTXd3Ud04bf2pjOuvAKp/cCzF61BgoeZ1e15gjlUvbvwtNvFhctqxhl 8QXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qHh4HtQT; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 w8si1507242pgj.617.2021.09.27.06.41.55; Mon, 27 Sep 2021 06:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-input-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=qHh4HtQT; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 S234359AbhI0Nnc (ORCPT + 1 other); Mon, 27 Sep 2021 09:43:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:38596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234114AbhI0Nnc (ORCPT ); Mon, 27 Sep 2021 09:43:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3D8560240; Mon, 27 Sep 2021 13:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632750114; bh=qjt1s5inuCWKP8g5uDxb3T+aW+Tv4h7k804QMmE7f6Q=; h=From:To:Cc:Subject:Date:From; b=qHh4HtQTKCNKt4UBPenri2J+5i62Fy+epYkIqTRlWtz0G1J9wulfA3xgCLM+p2tjq hRW3Wpb3okm5FffIskLqwtB9QO4YY/J7E181pveRhFBExWTVrePVe8SXLUpTETJNj+ mv1NyUDEQjQ72apU47P2j54wSjlcQZkdckc77iGKGuKP2bJRenh68dfmClBH3qQvZc /UNT61O4P7il44XQIIJIbz1GxhEs8RHOXqSc/vMMzDQPQLRLCbleNQin1gF0VBpsUp 7AtJtWzMEZKgX2JHhwAAoE2nxUkHgmxEG4YHCSCd+IwvEc6izzzyYtfnS0vyKfIMgP FDBTiZxYTMExg== From: Mark Brown To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, Mark Brown Subject: [PATCH] input: ariel-pwrbutton: Add SPI device ID table Date: Mon, 27 Sep 2021 14:41:04 +0100 Message-Id: <20210927134104.38648-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1335; h=from:subject; bh=qjt1s5inuCWKP8g5uDxb3T+aW+Tv4h7k804QMmE7f6Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhUcnou1fFjcpY3VkOAM8Gbb1OHApjPbVWvBYTmy4b qHgnFaiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYVHJ6AAKCRAk1otyXVSH0O9SB/ 9FcFLCscfHjDLwFXmQBO7eQKJ/LaA0NNNhiIBXwIMVpL9qhpLSvB25uLfclNdDf4xBTUqNZVhtWlJk ED/8wP6GWeStxtHgdmZ3wcTYvhJ57zb+7rhq3XbSiNXGzE6hmVm4pEsDHBOwcwhNdNstxsxMc82Z+L 797ucGEjpZT3vC2phN/7z6okHNtBCpDDaJdu48s/i83R5HgruyR71nFH3oQWjVgBAWCzi5a+THXRA4 DFZxuN27zErv4W+cXoMENgPdSoc+BtdUMNcXmtjAAPyIwGtTYdbZtk+d1CHiXxi8L4DTFsd3d4N7vg Fx8qZQsf+MNdRFvxql28yXk8gFpAxo X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-input@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/input/misc/ariel-pwrbutton.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.20.1 diff --git a/drivers/input/misc/ariel-pwrbutton.c b/drivers/input/misc/ariel-pwrbutton.c index 17bbaac8b80c..cdc80715b5fd 100644 --- a/drivers/input/misc/ariel-pwrbutton.c +++ b/drivers/input/misc/ariel-pwrbutton.c @@ -149,12 +149,19 @@ static const struct of_device_id ariel_pwrbutton_of_match[] = { }; MODULE_DEVICE_TABLE(of, ariel_pwrbutton_of_match); +static const struct spi_device_id ariel_pwrbutton_spi_ids[] = { + { .name = "wyse-ariel-ec-input" }, + { } +}; +MODULE_DEVICE_TABLE(spi, ariel_pwrbutton_spi_ids); + static struct spi_driver ariel_pwrbutton_driver = { .driver = { .name = "dell-wyse-ariel-ec-input", .of_match_table = ariel_pwrbutton_of_match, }, .probe = ariel_pwrbutton_probe, + .id_table = ariel_pwrbutton_spi_ids, }; module_spi_driver(ariel_pwrbutton_driver);