Thread (1 message) 1 message, 1 author, 2016-07-10

Re: [PATCH v4 3/3] ath9k: parse the device configuration from an OF node

From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Date: 2016-07-10 20:56:39
Also in: linux-devicetree

On Sun, Jul 10, 2016 at 2:19 AM, Bjørn Mork [off-list ref] wrote:
Martin Blumenstingl [off-list ref] writes:
quoted
+     if (of_property_read_bool(np, "qca,clk-25mhz"))
+             ah->is_clk_25mhz = true;
+
+     if (of_property_read_bool(np, "qca,disable-2ghz"))
+             ah->disable_2ghz = true;
+
+     if (of_property_read_bool(np, "qca,disable-5ghz"))
+             ah->disable_5ghz = true;
This is bike-shedding, but how about

        ah->is_clk_25mhz = of_property_read_bool(np, "qca,clk-25mhz");
        ah->disable_2ghz = of_property_read_bool(np, "qca,disable-2ghz");
        ah->disable_5ghz = of_property_read_bool(np, "qca,disable-5ghz");
I'm fine with either way - I'll simply adhere to the coding style that
the ath9k devs want to use, so just let me know which one you prefer.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help