Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1143237pxv; Fri, 9 Jul 2021 19:22:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv4xFUVC+/+CL3lD/ZdiYxyhIxZeivgo3i7hklcUdfJvT4QUi4SIBET9ScmmXzwRY9rxLB X-Received: by 2002:a17:906:b53:: with SMTP id v19mr9155216ejg.262.1625883754150; Fri, 09 Jul 2021 19:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883754; cv=none; d=google.com; s=arc-20160816; b=BQ0wfhC+ZFmmBs3Bave0wQUN/oV4hrX+CCcrCdiCY/E7ml/IN4fsRMJ57ptcw2LvWl GCems1q1eLy56G33isuA3MUJTA9/GJDdBa2rXMjOvOV1v8IVcOMmM9VUC8pBCETw0sk4 JaJ8zdr5SY9hnmWWxA2ZAZVFrpV/XI7ArO2Jrxx+4yioxZlDYZyCXEiPo75ubRAjgRbC Marlbu6c7iqVjZAQXHvYecy/PZ6nuwTuDNSBNgUItVd/lYSOgZ46T1Jo6J24UeIL2L9P C7IGIei4Rwcesch8RAZFdvqRNtXpXNljyaOXlXLEcYQCIpnHJ3mumWFPBcJrMHSL/xf6 5xQw== 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=ttvcIr+7qHz6AxuHj7UwS6Qqv8fQVYvSDeu73/A/FWBMfbpzk5wRMAESM/TWmB9+o8 G6FEwmX+Z7tqhHk/+0gm9vFxR45RUzLNPn4bNzsJv1iZIYvf1RiqcswnD0gbDhTBR02d FMh2h2OdPXLVlGsVnzec4Zd9GmuLvWL5KRChlqVdMsY4/RsOrw7ssKJN+vcfa01fVODA rBT6EzJR658T9Yak+2wXimiCxbb/Cw0xjvrBeuIIyBiSPbKatDAmUwVe+X5QxDSBBEmq YyFpPmP04E1cWt7SvYOZMOqJ6GSOStcDTGj6unqBl1aaQH641qCVwzu0M8meM661O4X0 yxZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VQgWdBvL; 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 ka25si9228765ejc.354.2021.07.09.19.22.11; Fri, 09 Jul 2021 19:22:34 -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=VQgWdBvL; 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 S232712AbhGJCWa (ORCPT + 99 others); Fri, 9 Jul 2021 22:22:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:38684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232580AbhGJCVo (ORCPT ); Fri, 9 Jul 2021 22:21:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 794DF613C7; Sat, 10 Jul 2021 02:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883539; bh=4cmWkVFhdTzQWY9usqWWMyf40gKiTVqMUh3jZzfwEhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VQgWdBvLNnhVazkacDLNMobzPiBxk/PL28DAwCpqlTzJ1zYRU33trHXS28jBvE6tS NLP/r2Np31JVTzpAg2xH2cyFiPD9O890JmBccVxDDAeRxMsKY2lmSwnz4zHzTV0fk2 vEhEO4knrm3p36kxxJw9NKTlryP+XZu60Ivawhei5gTyVq465LlQaIn596reekghMY /eW8Azp+gQvn3BXHR+Glr2G6zNTpkIeA+0jtBMxocTW1ZX2lf4MySlg4w/fFkJTyFk MISEgIV/hjNWWoFAFLRWXz3Uh5EY+x7BYK7EwVBKkFLLELpFfPvDuhsMKn3dR1Md8T z3jbu5ENb1z0Q== 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.13 051/114] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Date: Fri, 9 Jul 2021 22:16:45 -0400 Message-Id: <20210710021748.3167666-51-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710021748.3167666-1-sashal@kernel.org> References: <20210710021748.3167666-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