Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1147597pxv; Fri, 9 Jul 2021 19:31:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpJCV7rH5PBBrL+yqxR5oGxT27P5jo6QlcpzraGXaPBp8LZu+pc4L2vMBXcri9fULt3Ldp X-Received: by 2002:aa7:c907:: with SMTP id b7mr14715754edt.148.1625884308306; Fri, 09 Jul 2021 19:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884308; cv=none; d=google.com; s=arc-20160816; b=xlD3E6N7f45dlnt0WvXh58fxoGPkLJ2Sw779fuDZOfYevFbK41Ty0tsa0DPbkvaPHR zL1OTy9MOonyjQDSxWXATYDszHrwxDXW4S/UtEf3RCHY/sP0VETcXyGqUK+F0BXkqYm3 iBveMtucGxu7DAo5aNcj/APsI1e3h7XR1lCIzr6sJ1HcICFicQ/FAstiJcf6zY5Dgm8T vnciG7C/afYGwtNHfpleYVdmpP0a6bk/gIsbDCbdD2UZv9s5VzkuvtE0B3kvzn3V4YDZ QXxVVR6gLOsZdgyhekv+b5mXJbp/cV7IGOE4F2jinr3vqpRAgJJ8CaCHvIvYIoVaUFQQ laTw== 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=rNV6EUYS50MofjlqNzq7PMZev3Tp9cx1prW8Kz7gz3KcY8GoeTSq1qQMlxJyzzk4ec QNOiUlyoOTxmNALkdAz3zJAivLvtZ+rbjDqPKeoCoMaeQ70xh6NjdGxBnr3wDJLX0L8X Rng9gJMfyFOsAe3dCNIX7uTsoXxJ7lLFdKv7czDANzR0DZXIrlqp5p/uF+IN+zTE7Dhk cmpXAS51ZroahTJNVp6crdf8pEoIPVYLBSt4x0PPW0EZuDaG3oy8xduapHVsrBCNp8Xx NnfGuh7YNfK4thLW24xBeSNzhpqZc7Rw8m2M7dCzkQkMyTEEZaC3ab6vR8JlhUN5YZU1 2BRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=spS3ZMzh; 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 f18si3437686ejh.710.2021.07.09.19.31.25; Fri, 09 Jul 2021 19:31:48 -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=spS3ZMzh; 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 S233156AbhGJCdO (ORCPT + 99 others); Fri, 9 Jul 2021 22:33:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234112AbhGJC3H (ORCPT ); Fri, 9 Jul 2021 22:29:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5A063613F3; Sat, 10 Jul 2021 02:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883927; bh=4cmWkVFhdTzQWY9usqWWMyf40gKiTVqMUh3jZzfwEhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=spS3ZMzhuvRLldWvYZLnDgMJsez9zn6z1JLIeDKEDCG4tNa9F0i5uwrC9poTBDxz0 wSNIR10Pp9lFSSUw/cbf2lDY2RrnIckMhEj6klH06Dh9usuJVy6i8UqOTMjZ2n5KnC yYYBE1Ff4fYR7WzhKjVUtipCqu8UekAubz9EHjym9CkECcitXWNEiLubgWZqZ/Si0f VteAIs7tihFaSHhcdTUr1Ypv9F1BZN68MWyiSQHFi9Ux5S7FqinUWO/UdKnkoBKgZs mPL2scJO33vwOiYGmcdscs+iVWphz/ZEc6lUUM31VOpJecZLNw6jPwzLmGSV71AKJE ASKuMuWCMCZYQ== 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.10 44/93] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Date: Fri, 9 Jul 2021 22:23:38 -0400 Message-Id: <20210710022428.3169839-44-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-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