Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1145802pxv; Fri, 9 Jul 2021 19:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz61lgGCpsPTPK8Eh6/dEI9hKTevhLVINlPICK8Nly3FEWi+BBzr1tcRoagH6vQOqnv613O X-Received: by 2002:a05:6402:4388:: with SMTP id o8mr32428698edc.338.1625884102160; Fri, 09 Jul 2021 19:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884102; cv=none; d=google.com; s=arc-20160816; b=Q41ieYke08x0ArXd/7gOv3v9ezdgG7NjvxPhqUlJYzrmvLORlUD492i4lj+yUebXHV pfRjRAkgprhHwl2+Gdg/Vg5T+5BA/48n7UG/2n4V2n/ql359Zq22KB61RpJA3599Ws+E AsSFhLd+ajma5NZ0kMvjUGwjytO3fy667qRkRlhwxc8thFy5LbXhN4tc4WyDCJgOQmoy /jNTdDiiQ/GLrPpL5LdSolyta7T6KURhxF4fNEGLqIbSL3UzDKjDRcPTHnqr2tru26G8 txMOvruKeTfW6yxQSj9Y1eTyTIpfBp2p5N1lzlrHjlR/yv9SDjSP6iGTMv+LW8l/C/RD mOXw== 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=GBZBZylfxHtAPgjLZREWWRo2m/fLtp9+pfh8gRNpxRw=; b=Qe464ADK/2Fphtjzny2hOKTllnYOkq7G7CxsUgFl7WS/pHPVFDmYuC5qTqpqqzNDI3 9G6st3Llr8F8RG065oR5F4T03m5wTWvhvuSuAlWmuHcmzY66hrx81Fy/4puv3f+aINjF KUHSTuf49qAJbdh4SaTFui6a+Z841yVJZ0ZBMZIc9SeSXnRDRNkgjWEAq/7iJcOe/9p4 9Aa+bnmVQOv/v35GWX4db7qVyQEiUscGaiHWt9I+SMkUchOz1B0YloQNBWSb4r1PhGAC LF4G6sKAao4PJJ5u7fnVgmz6buyx7UfBEabHWp4gufCTe0K8SI74yZ2V40CMh7eXU/v4 CUKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Sc8poP/N"; 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 dm19si8738750ejc.143.2021.07.09.19.27.59; Fri, 09 Jul 2021 19:28:22 -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="Sc8poP/N"; 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 S233438AbhGJC0n (ORCPT + 99 others); Fri, 9 Jul 2021 22:26:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:41746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232387AbhGJCZp (ORCPT ); Fri, 9 Jul 2021 22:25:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 243B9613CC; Sat, 10 Jul 2021 02:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883779; bh=4cmWkVFhdTzQWY9usqWWMyf40gKiTVqMUh3jZzfwEhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sc8poP/NzilJ0M0Pk4k98qnKBMqc+v2D0eD3xE3IYJqQP1kD5nQeAGSJLfl/X69sc Jtc56BOyXUDF45KwPkVTbwY3nTCWdY2aljacP/O44gIi7vhGVtP6hTOPnf2qmSxDc7 s4deda7k6u2ts51f+ir5iQaip6sqrT8u7oCk18NFcJvvR1M+Yu/j7k9vkBwY4fDl57 veKL3QDlbBKOKXtWGhMRHjZXIfeSq34VAxrcSY8O9MaY9BY1CNJ2gIRpieXm7kz1Hm V0uMcDi/8n9VHdHXcLRpSeBRqjQmZ06lOIy3dIbC7BVALhxCvEuZVb3H4Qxo6nqUw9 LLVRblisEftIQ== 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 5.12 047/104] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Date: Fri, 9 Jul 2021 22:20:59 -0400 Message-Id: <20210710022156.3168825-47-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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 47556d2d9abe..8ebfc7bbe4e0 100644 --- a/drivers/mfd/da9052-i2c.c +++ b/drivers/mfd/da9052-i2c.c @@ -113,6 +113,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 61aa020199f5..cd2f45257dc1 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