Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783Ab3IUPRg (ORCPT ); Sat, 21 Sep 2013 11:17:36 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:36392 "EHLO mail-ee0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752271Ab3IUPRe (ORCPT ); Sat, 21 Sep 2013 11:17:34 -0400 From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Cc: Andrew Bresticker , linux-samsung-soc@vger.kernel.org, Mark Rutland , Yadwinder Singh Brar , linux-doc@vger.kernel.org, Tomasz Figa , linux-kernel@vger.kernel.org, Tushar Behera , Kukjin Kim , Russell King , Sachin Kamat , Stephen Warren , Grant Likely , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , Rob Herring , Mike Turquette , Rahul Sharma , Padmavathi Venna , Jiri Kosina , Stephen Boyd , Doug Anderson , Leela Krishna Amudala , Rob Landley Subject: Re: [PATCH 5/6] clk: exynos-audss: add support for Exynos 5420 Date: Sat, 21 Sep 2013 17:17:28 +0200 Message-ID: <1407151.hAbz8S9ABE@flatron> User-Agent: KMail/4.11.1 (Linux/3.11.1-gentoo; KDE/4.11.1; x86_64; ; ) In-Reply-To: <1379711637-5226-5-git-send-email-abrestic@chromium.org> References: <1379711637-5226-1-git-send-email-abrestic@chromium.org> <1379711637-5226-5-git-send-email-abrestic@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1189 Lines: 32 Hi Andrew, On Friday 20 of September 2013 14:13:56 Andrew Bresticker wrote: > The AudioSS block on Exynos 5420 has an additional clock gate for the > ADMA bus clock. > > Signed-off-by: Andrew Bresticker > --- > Documentation/devicetree/bindings/clock/clk-exynos-audss.txt | 7 > +++++-- drivers/clk/samsung/clk-exynos-audss.c | > 8 ++++++++ include/dt-bindings/clk/exynos-audss-clk.h > | 3 ++- 3 files changed, 15 insertions(+), 3 deletions(-) [snip] > + if (of_device_is_compatible(pdev->dev.of_node, > + "samsung,exynos5420-audss-clock")) { I don't really like using such string based conditions in the code, but I guess it's just a matter of preference. I'd introduce an enum to represent supported variants and put them into the OF match table or maybe even a struct that would have a bool named has_adma_clock, true for Exynos5420 variant. Best regards, Tomasz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/