Re: [PATCH 3/4] clk: ralink: make system controller node a reset provider

From
Dan Carpenter <hidden>
Date
2021-10-06 10:15:33
Also in
linux-clk, linux-devicetree, lkml
Reply to
Sergio Paracuellos, 2021-10-06
On Wed, Oct 06, 2021 at 12:02:12PM +0200, Sergio Paracuellos wrote:
Hi Dan,

Thanks for the review. Comments below.

On Wed, Oct 6, 2021 at 10:29 AM Dan Carpenter [off-list ref] wrote:
quoted
On Wed, Oct 06, 2021 at 08:12:03AM +0200, Sergio Paracuellos wrote:
quoted
@@ -398,6 +401,76 @@ static void __init mt7621_clk_init(struct device_node *node)
 }
 CLK_OF_DECLARE_DRIVER(mt7621_clk, "mediatek,mt7621-sysc", mt7621_clk_init);

+struct mt7621_rst {
+     struct reset_controller_dev rcdev;
+     struct regmap *sysc;
+};
+
+static inline struct mt7621_rst *to_mt7621_rst(struct reset_controller_dev *dev)
No need to mark this as inline.  The compiler should do it automatically
or it will ignore the inline.
Ok, I have other functions to_* with the same inline syntax, that's
why I have added also here. I think I will maintain it to be coherent
and can be removed afterwards with another patch not belonging to this
series.
Consistency is never an important goal.  It's better to be different
than to be wrong.

regards,
dan carpenter
Thread (9 messages) 9 messages, 2 authors, last reply 2021-10-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help