Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp56985rdb; Fri, 1 Sep 2023 23:12:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqajm71a9M7VfJwxoDTj/FI1ArkIluUEwpIEdxd0HQwI25AVhe95Y7Mmc+E4N3EVb0mLWI X-Received: by 2002:a2e:6a09:0:b0:2bd:16e6:f07c with SMTP id f9-20020a2e6a09000000b002bd16e6f07cmr2833948ljc.17.1693635136890; Fri, 01 Sep 2023 23:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693635136; cv=none; d=google.com; s=arc-20160816; b=SZlJxZBq8zHGp4s74itmBvIuJfoudl/KGo1mIwwOObGCOaP7rIgXC/xCOgHF5CF7FN O/BIaDxxaTQrcUUJFB07FVNb4mB/f3G/vTsSMX63BGv+34WPVe8H6pLDHCjtcTP5QFbw zbeNDdgq6Jhy8VJIEqWiy/Pi+ekDWzf+G3/sOtgSs6uPArGesIk4Uggn28+y6Y2vky+F gmJkED1RfbGuPxoW9VdVk204HpZ9+2raXWXb90Cla0T9DkOlUMRmd/XarfuYQbG1pGlA 0wBnvsoikYSzzbtcMWM6hQWp0J8A86zenSAYripZynYWd14jiE9/wk+MiQOeS2NPFHqY 35gQ== 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=iIFpARRx9JrFd9LfkVr/OlkD50eJltKqOroZfyZF7UA=; fh=bnS55+PkCBQcjlLw9ish3xkr88PtZOja0af1JdvbBB8=; b=WRvMhvaiP6lJoYA3dy230gm2UKj2jxG+joJmutsObfK4rpeLdLwpYNl6KUx6tihJM1 fUcOvEr18ZWI+8w461oQiWxuomCDgyB49Et6fHfhOBEXZFMh0mgcNovcRRbwS476McnK fMuFAYtNpRwy60kcmnZJRJ4HH16K5cTMPysZbdAxJreI3iw+YoLVEhmp3Ra8oSkf7oUN 6gF9pr1cSKlaG+yLzyQM8u6JHTdIOHvlLr+raCYmZXJ4OwhofwOoOUy+kT1oaR8Hw+Qx o2IDzFDau9rqzzUVtCk5LDHFIPpYGY0J5u/4iMLJrkbawaLpjgJOeWQ99iRm7VcDO0+G SlRg== 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 a22-20020a170906469600b00992c3b85acbsi3464099ejr.128.2023.09.01.23.11.49; Fri, 01 Sep 2023 23:12: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 S1348440AbjIAHAT (ORCPT + 99 others); Fri, 1 Sep 2023 03:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348434AbjIAHAR (ORCPT ); Fri, 1 Sep 2023 03:00:17 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7273810DF for ; Fri, 1 Sep 2023 00:00:12 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,218,1688396400"; d="scan'208";a="178409384" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 01 Sep 2023 16:00:12 +0900 Received: from localhost.localdomain (unknown [10.226.92.203]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 76C264008C5C; Fri, 1 Sep 2023 16:00:08 +0900 (JST) From: Biju Das To: Jaroslav Kysela , Takashi Iwai Cc: Biju Das , Liam Girdwood , Mark Brown , Charles Keepax , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Andy Shevchenko , patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Biju Das Subject: [PATCH v4 3/3] ASoC: wm8580: Move OF table Date: Fri, 1 Sep 2023 07:59:52 +0100 Message-Id: <20230901065952.18760-4-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230901065952.18760-1-biju.das.jz@bp.renesas.com> References: <20230901065952.18760-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. Signed-off-by: Biju Das --- v3->v4: * Created patch#2 for removing trailing comma in the terminator entry for OF table. v3: * New patch. --- sound/soc/codecs/wm8580.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c index ba47b01f13e7..28c0ba348634 100644 --- a/sound/soc/codecs/wm8580.c +++ b/sound/soc/codecs/wm8580.c @@ -988,13 +988,6 @@ static const struct wm8580_driver_data wm8581_data = { .num_dacs = 4, }; -static const struct of_device_id wm8580_of_match[] = { - { .compatible = "wlf,wm8580", .data = &wm8580_data }, - { .compatible = "wlf,wm8581", .data = &wm8581_data }, - { } -}; -MODULE_DEVICE_TABLE(of, wm8580_of_match); - static int wm8580_i2c_probe(struct i2c_client *i2c) { struct wm8580_priv *wm8580; @@ -1031,6 +1024,13 @@ static int wm8580_i2c_probe(struct i2c_client *i2c) return ret; } +static const struct of_device_id wm8580_of_match[] = { + { .compatible = "wlf,wm8580", .data = &wm8580_data }, + { .compatible = "wlf,wm8581", .data = &wm8581_data }, + { } +}; +MODULE_DEVICE_TABLE(of, wm8580_of_match); + static const struct i2c_device_id wm8580_i2c_id[] = { { "wm8580", (kernel_ulong_t)&wm8580_data }, { "wm8581", (kernel_ulong_t)&wm8581_data }, -- 2.25.1