From patchwork Wed May 12 06:33:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zou Wei X-Patchwork-Id: 12252775 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2998C433ED for ; Wed, 12 May 2021 06:19:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A069D61421 for ; Wed, 12 May 2021 06:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A069D61421 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=baTyhCK/dKUN71KcZBNo7M18G3csjQeVeZeyJXwfoyo=; b=WHXx0t8Hi0icJbvu0eeHAk0B2f sq9+GJ5ADie/f4u/eVgAlPjp5kYcdVaBJkMixbMRfIcVZ/CZdtCtA1hiBifm+jccffiWLnE5cr+w/ wUW4o0mtqXsOOLrqlSmPWtwiraTfJ2Ql4WO9ra9oAWpagU2CsH6VzPGlztwzSnpdHERqmltrXDR0w HbHi7l5KMF5HWxhc1TagyuFIVN+fd7x0J1AJelQq5UZeDLzUBllhK7Y971lMcsBnKW+7c7JwvNNhH 0rsIvfUlwdeiKOzFyqKoE78l3zpSmKzYf2LYxlqkkVvcSYjd0gaH+El0OxsOv9DcxXwU0Xyiv9yBJ +BBXrALQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgiBD-0028HV-1P; Wed, 12 May 2021 06:17:11 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgiBA-0028HH-Oe for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 06:17:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=aqHQQGEtgLA/j+mUO4Zd3OGbsJ+oyHGcfndnUuHzbfw=; b=3h1nrSNn1b7Lj8F0+UxnLTU42h xvMA18kWEmJUiav47LbFojOyiNJqmGNvoc9n9Fl/ZDeg0SqkEQFSm2fY3wHVjoLwD+arTaypLYbWH ZbvnjHxG+ep6tZdq4ZGDWpZ2T/KUtANqUKbGW4uYIeEd1B+18Tk/yAuLNU1l1lz4hQM0I5Ww4nJt0 yr9iwZ8zESeWV6fHjpUEd2a6TebOJoCOqkjYKe2yxkGmIypkGiKPSWeIsrUC7ugdLNQ9wokFE2mJ1 iY6AAQDIXLhKYEu1iPZippwqiEgZdOuqvUaCgdu7Nys4P1IsCeIzhU+cMRZ3VI/sNiUuj0bxUN5gx TQQw6t6Q==; Received: from szxga07-in.huawei.com ([45.249.212.35]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgiB7-00A8mg-Jx for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 06:17:07 +0000 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fg4Hn3NVKzCr03; Wed, 12 May 2021 14:14:13 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 14:16:44 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Date: Wed, 12 May 2021 14:33:46 +0800 Message-ID: <1620801226-18474-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_231705_835846_C2CCE94A X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 47556d2d..8ebfc7b 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 61aa020..cd2f452 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 = {