Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2890400pxb; Tue, 24 Aug 2021 09:58:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhtd2GHvdXftDP88zpf7WxT08AoUVQrm3UDH2QgkCc2Fv9nEKLFruI/hi0kpOlDlDd6K7E X-Received: by 2002:a17:906:3a98:: with SMTP id y24mr41230990ejd.198.1629824304126; Tue, 24 Aug 2021 09:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824304; cv=none; d=google.com; s=arc-20160816; b=HVtz0nDBTQTiWBHz0eXio3ytEJCqPnWbTZdOfPGpDRxkD8rgypTOKk8UWoUhR7JRy6 Smp5wZdzNQYlrmLLzXGsz+I8OjqFYRVwnghzZovHDmAFd5DsvbjWtnotSKqR34eTLc6H IE83Z4hQ1wOTpDPbsjd9W78cAtnDq6ALD7NNyV8DlQuqeFYwLUJBRzwQlXYvcGLySImE oBTfhgX4EF1Yt/gBC5KdKojEjV1HeOjaWOgUz8Tags3/6+Mivqmch8jVmw02LQ3sIImf il4FSyTETlvmg/ihiie04KR4CJA1b6tyMclCabtEBpHiodLDr4E7wTYRjf25Woo4dns7 Y7eg== 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=H6uaakGOkr4LjurExn+fDd0EimQk/9C5ODy1DbNKeIk=; b=AOZ5WeCnyUCHBv7JefKNbtKs7T9SBMCizekho1uZl0pPr0IquD5sUOk3WxsKsejCKk Sgr2kiV4HgwsfbY+kzzDH1CrrWfwem0ZayV+in1nUAe/WSPRtygCKv3fqHFfMZK1jF/V Jpzm2seBL701EvDHr9yMiVCvlIVa3O+kDyHh4jIQ+RFn+AsURDUOD9IE0W7gnKJ3qEGN HmuF3EGvw+07yz+4OjgobQDL2QHFwWD/WblKnZO0w6jkwyGVyY7IbWYhO2+Q9SyTUgNK 1wdLhnEcYheb+ILrB8H7q7hPt27c2TqwkHj4cauEg5aBOtLojF5WmVbBsSllR9BKvzHS L/Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xxwi7gcN; 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 x23si4243441edq.575.2021.08.24.09.58.00; Tue, 24 Aug 2021 09:58:24 -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=Xxwi7gcN; 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 S234399AbhHXQ5P (ORCPT + 99 others); Tue, 24 Aug 2021 12:57:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:38822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233655AbhHXQ5A (ORCPT ); Tue, 24 Aug 2021 12:57:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DC9F761371; Tue, 24 Aug 2021 16:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824176; bh=2l1MTADzjG9l7HxHfrrGl87rCrQzi97eRenUpP5Th/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xxwi7gcNO8dXX4d5AURVO4Ic1WYQ87Z03YtExnNfrV/mZmvcsN1xxYSriUcj840no DZCV5YJpcdml9IHDw7nA7Q6hF7mi0k41jYJ8vOt6d7pAV1YVTcgptMmL5RTs1nNJSF xkRzA+fT8dizj1Qot2X2dqPwVAvRuyB/JcSWwa76g0Ep5qwJpUi9/eJPYjQOwjn+xs 0WfCvOVQMqG/HqNk/cbn/b3oZ6PTsrvUNhT9i0gcoGAyB8GjpBsN1sQ5PZjQc3f7Sq vKGfBuf/Gh7pbL0efTtBO0HHDcLpaAf76zuDJaAWE313EHu8F152XCKa3RJ/jbIEJO 5jUIQ4jAGXy1A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Mark Brown , Sasha Levin Subject: [PATCH 5.13 007/127] spi: spi-mux: Add module info needed for autoloading Date: Tue, 24 Aug 2021 12:54:07 -0400 Message-Id: <20210824165607.709387-8-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Uwe Kleine-König [ Upstream commit 1d5ccab95f06675a269f4cb223a1e3f6d1ebef42 ] With the spi device table udev can autoload the spi-mux module in the presence of an spi-mux device. Signed-off-by: Uwe Kleine-König Link: https://lore.kernel.org/r/20210721095321.2165453-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-mux.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/spi/spi-mux.c b/drivers/spi/spi-mux.c index 37dfc6e82804..9708b7827ff7 100644 --- a/drivers/spi/spi-mux.c +++ b/drivers/spi/spi-mux.c @@ -167,10 +167,17 @@ err_put_ctlr: return ret; } +static const struct spi_device_id spi_mux_id[] = { + { "spi-mux" }, + { } +}; +MODULE_DEVICE_TABLE(spi, spi_mux_id); + static const struct of_device_id spi_mux_of_match[] = { { .compatible = "spi-mux" }, { } }; +MODULE_DEVICE_TABLE(of, spi_mux_of_match); static struct spi_driver spi_mux_driver = { .probe = spi_mux_probe, @@ -178,6 +185,7 @@ static struct spi_driver spi_mux_driver = { .name = "spi-mux", .of_match_table = spi_mux_of_match, }, + .id_table = spi_mux_id, }; module_spi_driver(spi_mux_driver); -- 2.30.2