Message ID | 1559577023-558-10-git-send-email-suzuki.poulose@arm.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4644075ili; Mon, 3 Jun 2019 08:51:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqySX4USZFY+eJX6XT12mKLRorrkiwkW2xnPvqoOEblTYbFD5RQSUfEfXdsAr6eEXSSmWKGb X-Received: by 2002:a63:4147:: with SMTP id o68mr29369265pga.76.1559577079235; Mon, 03 Jun 2019 08:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559577079; cv=none; d=google.com; s=arc-20160816; b=uUvmrl0AGB78ynjsO9PkjzUFwkhE7N8OpJRtX+ehIy+pErt793MwviCmSr8uHw+I20 WTTolo5faZkso8MC3jzCG2YxIrYYRDknnwcBM0al5xfzbcw433XS1paZxZf2A/9reRsN fRqnyoiFfxASzj6ZA2HekG3qtc4IpZKSo5CvPOhdsBPaOjm9dcu9+DEC33IFF8Ov89+T AGo3+uPJj5eLtj9C6LIMK2T7LRd2VZPbpvCxs5qOg5dWXE/lc2XV1w5UzYHGl00V9QzN 1OwWZwdfBbxjIuxax26gWAI9RTi+CE4WZ/+hiM8BZI9UiKIPDoe9G1KSr98I/Eg9tiFQ bX8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ihlDMVJIqFWZNOcj8twZB0vljjqqE3M2rWylTxdDXvs=; b=K0Gj566jFKdlGrA2usu5KEXen0VQPFmUf94a+oOQNiT7c4Hy4JJi7vFe8BvpLMT2et H38TWZwzEnQ6vq7U2YWowpWT3RdgCW/4i0pkbzy18XZvSmFUzDoY8O6yGvtLMWOxOrqv 2O8RUuYoVxmmCrsFk2p5fgUGODGqAnXoObl7EY8m1Q8Y1sx/nfAYXAu/+VgyNUXzNCL6 VxaVusgw8cd/AxJcqCUkVUE+5iO8ZtbhHkQd0PmF888kgbIuuX1fKfbCIlGei/xsvmEH dPc9s1eAFqkXTuRfdF7kmRDJqyoOjQRwEzqRz9uLKYD5himtV3A9WSlNeCN/ftSBdA7m QtGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g69si20591014plb.70.2019.06.03.08.51.18; Mon, 03 Jun 2019 08:51:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728710AbfFCPvR (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Mon, 3 Jun 2019 11:51:17 -0400 Received: from foss.arm.com ([217.140.101.70]:53608 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728564AbfFCPvM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jun 2019 11:51:12 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 823DD15AB; Mon, 3 Jun 2019 08:51:12 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CEC803F246; Mon, 3 Jun 2019 08:51:10 -0700 (PDT) From: Suzuki K Poulose <suzuki.poulose@arm.com> To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, rafael@kernel.org, suzuki.poulose@arm.com, Heiko Stuebner <heiko@sntech.de>, Takashi Iwai <tiwai@suse.com>, Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, linux-rockchip@lists.infradead.org Subject: [RFC PATCH 09/57] drivers: sound: rockchip: rk3399: Use bus_find_device_by_of_node helper Date: Mon, 3 Jun 2019 16:49:35 +0100 Message-Id: <1559577023-558-10-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> References: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[RFC,01/57] drivers: s390/cio: Use driver_for_each_device
|
expand
|
On Mon, Jun 03, 2019 at 04:49:35PM +0100, Suzuki K Poulose wrote: > Switch to using the bus_find_device_by_of_node helper Please use subject lines matching the style for the subsystem. This makes it easier for people to identify relevant patches. Acked-by: Mark Brown <broonie@kernel.org>
diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 3d0cc6e..677c92c 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c @@ -405,11 +405,6 @@ static const struct dailink_match_data dailink_match[] = { }, }; -static int of_dev_node_match(struct device *dev, void *data) -{ - return dev->of_node == data; -} - static int rockchip_sound_codec_node_match(struct device_node *np_codec) { struct device *dev; @@ -421,8 +416,8 @@ static int rockchip_sound_codec_node_match(struct device_node *np_codec) continue; if (dailink_match[i].bus_type) { - dev = bus_find_device(dailink_match[i].bus_type, NULL, - np_codec, of_dev_node_match); + dev = bus_find_device_by_of_node(dailink_match[i].bus_type, + NULL, np_codec); if (!dev) continue; put_device(dev);
Switch to using the bus_find_device_by_of_node helper Cc: Heiko Stuebner <heiko@sntech.de> Cc: Takashi Iwai <tiwai@suse.com> Cc: Mark Brown <broonie@kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: linux-rockchip@lists.infradead.org Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> --- sound/soc/rockchip/rk3399_gru_sound.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) -- 2.7.4