Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1150284pxv; Fri, 9 Jul 2021 19:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3Ee0V8fprvqz81SD+rQh65TddCxs8gTbYcR97My1q6hg/soVYjsWWMX+1E+rZR2xuN4CA X-Received: by 2002:a17:906:53d1:: with SMTP id p17mr12012021ejo.208.1625884652779; Fri, 09 Jul 2021 19:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884652; cv=none; d=google.com; s=arc-20160816; b=N2GRgYKQGon5G4pHAURUn9py3osWMKSpVTBheOOzX5zH2GwLMC5sbeWT0qIUBE5CyS EYb1MRiGyjAJVEL2XJntZq1d6Na2hYx8XYR5thyQfzyr0TOMj/dbHTlSLGlSCTKBgAe3 WEh29+QkIMTk8eUuzbXQ59S3pCfsdrQRe6IFU9Talhncuzy8CHhcu84byk/6XppbmGKc vFsTgOKlaOkEJcNDRNkcEu59BeCYOPv6pMzQ0TPrcIcdnxBSq03qWV/DgKYkKs9BaS6U 5IIebfLCCIOzUY2l8nf9uGs12NiX29DbxqjyE8sYDMlhChF8rGTM8wWPV8GbuDEup3mR 6MEA== 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=Inuuq5XOX6T7/sUpzMTOiJMcHja2XGF7Ykm5CZQvvIA=; b=ffz56aPOxyzIwz9oiUEMpJ8bzaKalwBh+L1RuluFZV+B+NCSHtivYDZccXPNxuF6QR dcy+tGggVUyn4pg0EVVrF+d2oYx3Vu/CDSSetA+IwhbWKXKKWoavsq3vkQSJyWPlUT36 I39XI/6oGExkvjyzl5oVofx8nzCWtcKUxCb66ZhgEc//OzozjSjmBJhcGZ3D8CqHNBrZ xtwvKB1Y4vXLR5/R8qbZ4f7f4xjlriqx3zHU/rd6p+HCqhBFlydR/UpF5yxtvU/Yxe5U bzRWvnNvfMbZSovQsfC+jh3M/EpwclMitWGoAOFI539SztD34+QgzlFWyNstPicaG27v Z8Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n18Pzvav; 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 dp16si10977370ejc.434.2021.07.09.19.37.09; Fri, 09 Jul 2021 19:37:32 -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=n18Pzvav; 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 S234609AbhGJCjF (ORCPT + 99 others); Fri, 9 Jul 2021 22:39:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:53322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233612AbhGJCfZ (ORCPT ); Fri, 9 Jul 2021 22:35:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55BEE61412; Sat, 10 Jul 2021 02:32:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884346; bh=hW8Q2O61AkaJlvZF1qqBNpySKBd2DXLScMrgUKomg9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n18PzvavgoBnjQJ8bfaNOjmkCchzqgUu3BQA4IhFSgDCiKNWFuBVmySMBohYnb9AX Zdt7agR5GwcJDJmQGJj/l6PRXsr1gH2FzeXlfcSgQI+9OTN9WagHcdYOONxIlGavI9 T1IPsBre7LgYc0f8Rea52P624ozW9Bb7N+6XzYbgSMPg8vy2RG1ju2BB+wZEHSRl8k n0nu9rB4L3V27c6x42kDMHjVx706TSTLhkq6P+YXhV6B6uP5azienqRyh0uKbqzJRy 9WEHVN7V7LbgiP4R/BRHuq+SQvzRJJRn5g8GPORz2XCqCyYdm7YyVsrVpTaxhpN2XO l5zrmJkq6zWwg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zou Wei , Hulk Robot , Lee Jones , Sasha Levin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 17/39] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Date: Fri, 9 Jul 2021 22:31:42 -0400 Message-Id: <20210710023204.3171428-17-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710023204.3171428-1-sashal@kernel.org> References: <20210710023204.3171428-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zou Wei [ Upstream commit 4700ef326556ed74aba188f12396740a8c1c21dd ] This patch adds/modifies MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot Signed-off-by: Zou Wei Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/da9052-i2c.c | 1 + drivers/mfd/stmpe-i2c.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c index 578e881067a5..4094f97ec7dc 100644 --- a/drivers/mfd/da9052-i2c.c +++ b/drivers/mfd/da9052-i2c.c @@ -118,6 +118,7 @@ static const struct i2c_device_id da9052_i2c_id[] = { {"da9053-bc", DA9053_BC}, {} }; +MODULE_DEVICE_TABLE(i2c, da9052_i2c_id); #ifdef CONFIG_OF static const struct of_device_id dialog_dt_ids[] = { diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index 863c39a3353c..d284df25c76b 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -109,7 +109,7 @@ static const struct i2c_device_id stmpe_i2c_id[] = { { "stmpe2403", STMPE2403 }, { } }; -MODULE_DEVICE_TABLE(i2c, stmpe_id); +MODULE_DEVICE_TABLE(i2c, stmpe_i2c_id); static struct i2c_driver stmpe_i2c_driver = { .driver = { -- 2.30.2