Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp799049rdb; Fri, 1 Sep 2023 04:48:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEb4msY1Msqc7tsrnDE87yUyy6SeQ8ejyVTDq6R9ovjAGsXTLhOzzixq2z/9kvljtoFhpHH X-Received: by 2002:a05:6a00:14c5:b0:68c:4ff1:3df8 with SMTP id w5-20020a056a0014c500b0068c4ff13df8mr2563402pfu.31.1693568883989; Fri, 01 Sep 2023 04:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693568883; cv=none; d=google.com; s=arc-20160816; b=Pxwdrb9oUyX2ZiYTvJm4+MsE2/umHKWGK1E7/foWVzQw0elTjUpFKD/MJ9vjk9P78W gamu97qdYRB2e5elLKfQXmGI/EQMqHDAvFa/QSIoDaqi/6kAOBE7OiwrxBC8DLdkfl1a 6+vSULu1dY0uKegpFVvB4kpC07bN5Ff3hED7GACJ4+c/rOE3+JWNhFrNs4SqqPR4OTF2 BeNma+jRwrKaUaH4cvHOs24iKILl1xmHbuqSb09Niw0oOyJdniFJMK0GT/9Y1ShIiQS/ tGFz5VK5NVGNpHDIsEIu8OTDWtZXLmkYor0Lhj2g0DqexWok2V9xZfwA2G9yZkYtxerL gkgg== 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=HZ0jF4fCmdau6131+WsjFFr4XnKUu85p28xn3jX8qzM=; fh=rSzuQORPqttdkP0RDj2xost2m6lvywyAHa5V74ER7cY=; b=CpHxbWx919r1qY+o082wq74yVX8V44mbZzepEH14SCpZ4AZfZNxVqCAr2IgJS1qHuL 3LX0dnLdlWW8YAnGhZTDkU/VQ5kUV5Kympc7PU1a3Fcu9oCFxeWULiA7rs+B7EhvV3cz 8BUdzpynsdcwOR0ecu2dochCJHkddNzlJso0mly7g7YyfMcVMstPTHR8epjmoOY7vmXJ 9nPToyKskkc5YYE+v0y3cT6NAdxNvsEYn2hhOdHOq34bLwbO4EovUe7uWporMIYImR2u DVTtyFZPr3vPihhbSfqIuOVxac/2cRzmqD9CBpdDY2W1aJqghv2Oz+LG1L4BrOOXAhBc OX1Q== 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 d15-20020a056a0024cf00b0068a4437fad3si2850937pfv.343.2023.09.01.04.47.49; Fri, 01 Sep 2023 04:48:03 -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 S1343575AbjHaUOs (ORCPT + 99 others); Thu, 31 Aug 2023 16:14:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343540AbjHaUOr (ORCPT ); Thu, 31 Aug 2023 16:14:47 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E37A4E6F for ; Thu, 31 Aug 2023 13:14:43 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,217,1688396400"; d="scan'208";a="174633941" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 01 Sep 2023 05:14:43 +0900 Received: from localhost.localdomain (unknown [10.226.92.179]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 46A834005B44; Fri, 1 Sep 2023 05:14:40 +0900 (JST) From: Biju Das To: Jaroslav Kysela , Takashi Iwai Cc: Biju Das , Liam Girdwood , Mark Brown , Charles Keepax , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] ASoC: wm8580: Move OF table Date: Thu, 31 Aug 2023 21:14:29 +0100 Message-Id: <20230831201429.94554-3-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230831201429.94554-1-biju.das.jz@bp.renesas.com> References: <20230831201429.94554-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 --- v2: * 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 826c39ec4a1e..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