Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1408791rdb; Mon, 4 Sep 2023 12:59:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEdWs1S4Tc8/eF3wIg2mADYArmWNTZYg5do1p0k1ZCPFUVMeYvqQFIq0G2Jfp8VH0jTHfe X-Received: by 2002:aa7:d40b:0:b0:527:251e:1be7 with SMTP id z11-20020aa7d40b000000b00527251e1be7mr8030189edq.11.1693857557314; Mon, 04 Sep 2023 12:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693857557; cv=none; d=google.com; s=arc-20160816; b=ji0iki2F7lY919+NBj68Rw9xLEDf2ArGBGBmuIVZFecwLBajAD9Cn1HFWCODbos+kl T73IyfZx/YRbykgPLQQIcj0OnsIMJABBsxYMaQ/SvhmyC7sV8q08+lw8aUFSgT+BgetI xbTZ0Y3nL6f3HkEovdQunhO34ZfkZMI8ZpQauBdpBF56GUo3it7WquENIjSWrY/Wq8TA q5ANvpRcn0lGO8zXAmNZHTAK2HKCXd5GLbwxHd0nXnyPzb4RK0lSKT8qMHHH2oPHsAVw T85wh5YydbSBi5jzWN6wHo0/n+M4Wn3jrS6Se5XkmcXAO0fGyU3Nl3WfGftFuP/OTeq0 7Ytg== 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; bh=Ev6bgrP6Tr9nGKMTLlPIgemc/spEKecbISWBa3Y1Zwg=; fh=VdeWdNv2Y3HwtDbQJ/FB5+bX4+EoEjY9/LxfbUHZuDA=; b=q7EN8WLHPAvmlya56CWbWSDElRks0jahpHFuE4oWMsAflX7IeyeG57NqOtRSKXGIzq O7vBAVzVvGz7gi45NJAnaVoVKBfeZbeByR9lAOxCSkHct5JvEbkG6YqA8QCYkvJEHUQh evc4ixEArrXhQEcuZ/qg3yYUQ3LpKrTqk5thJCs7bXAkX5oCehEuaC9JESywJnP6Ixi5 GSIlcEBXOOl/09hCMtrsx2D5DoGalnzF/iBOrarCIT3yHNqHyQEv6j/C+wQ9FCOePbAW 5QfnfsZ0867UNzytsZYbNbFj4XxSdJXtoGL7YrB1gcJTCFSkGyqxhDWSM2Jl5LCP7aoR HvsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020aa7ce06000000b0052a3cffeeecsi6731813edv.599.2023.09.04.12.58.54; Mon, 04 Sep 2023 12:59:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347048AbjHaScK (ORCPT + 80 others); Thu, 31 Aug 2023 14:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347047AbjHaScI (ORCPT ); Thu, 31 Aug 2023 14:32:08 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A5BFDE66; Thu, 31 Aug 2023 11:32:05 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,217,1688396400"; d="scan'208";a="174628376" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 01 Sep 2023 03:32:05 +0900 Received: from localhost.localdomain (unknown [10.226.92.179]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 7AB84400CEF1; Fri, 1 Sep 2023 03:32:03 +0900 (JST) From: Biju Das To: Tony Lindgren , Lee Jones Cc: Biju Das , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v3 3/4] mfd: palmas: Move OF table Date: Thu, 31 Aug 2023 19:31:52 +0100 Message-Id: <20230831183153.63750-4-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230831183153.63750-1-biju.das.jz@bp.renesas.com> References: <20230831183153.63750-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move OF table near to the user. While at it, arrange compatible and data in single line. Signed-off-by: Biju Das --- v3: * New patch. --- drivers/mfd/palmas.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 3c0a3d644834..3ac9dec2b117 100644 --- a/drivers/mfd/palmas.c +++ b/drivers/mfd/palmas.c @@ -481,23 +481,6 @@ static const struct palmas_driver_data tps65917_data = { .irq_chip = &tps65917_irq_chip, }; -static const struct of_device_id of_palmas_match_tbl[] = { - { - .compatible = "ti,palmas", - .data = &palmas_data, - }, - { - .compatible = "ti,tps659038", - .data = &tps659038_data, - }, - { - .compatible = "ti,tps65917", - .data = &tps65917_data, - }, - { } -}; -MODULE_DEVICE_TABLE(of, of_palmas_match_tbl); - static int palmas_i2c_probe(struct i2c_client *i2c) { struct palmas *palmas; @@ -707,6 +690,14 @@ static void palmas_i2c_remove(struct i2c_client *i2c) } } +static const struct of_device_id of_palmas_match_tbl[] = { + { .compatible = "ti,palmas", .data = &palmas_data }, + { .compatible = "ti,tps659038", .data = &tps659038_data }, + { .compatible = "ti,tps65917", .data = &tps65917_data }, + { } +}; +MODULE_DEVICE_TABLE(of, of_palmas_match_tbl); + static const struct i2c_device_id palmas_i2c_id[] = { { "palmas", }, { "twl6035", }, -- 2.25.1