Thread (85 messages) 85 messages, 13 authors, 2016-09-15

[PATCH 07/34] clk: berlin: Migrate to clk_hw based registration and OF APIs

From: Alexandre Belloni <hidden>
Date: 2016-06-07 16:33:51
Also in: linux-clk, lkml

On 07/06/2016 at 01:40:47 -0700, Stephen Boyd wrote :
Quoting Alexandre Belloni (2016-06-05 10:41:57)
quoted
Hi,

The main drawback of those patches is that they break the alignment
(checkpatch.pl --strict complains).
Didn't checkpatch --strict already warn on these files though? I'm not
sure I've done anything to break the alignment style here.
As you change the function return value, the function arguments are no
longer aligned with the opening parenthesis.
I would agree that keeping the alignment will make the change quit
bigger though.
quoted
On 01/06/2016 at 16:15:06 -0700, Stephen Boyd wrote :
quoted
diff --git a/drivers/clk/berlin/berlin2-avpll.h b/drivers/clk/berlin/berlin2-avpll.h
index a37f5068d299..17e311153b42 100644
--- a/drivers/clk/berlin/berlin2-avpll.h
+++ b/drivers/clk/berlin/berlin2-avpll.h
@@ -19,17 +19,13 @@
 #ifndef __BERLIN2_AVPLL_H
 #define __BERLIN2_AVPLL_H
 
-struct clk;
-
 #define BERLIN2_AVPLL_BIT_QUIRK              BIT(0)
 #define BERLIN2_AVPLL_SCRAMBLE_QUIRK BIT(1)
 
-struct clk * __init
-berlin2_avpll_vco_register(void __iomem *base, const char *name,
+int berlin2_avpll_vco_register(void __iomem *base, const char *name,
This is missing __init.
Ah I also removed __init in the header file here because it doesn't do
anything. I guess I should mention that in the commit text.
Indeed, you are right.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help