Skip to content

Commit adf4e28

Browse files
gclementbebarino
authored andcommitted
clk: mvebu: armada-37xx-periph: cosmetic changes
This patches fixes few cosmetic issues such as alignment, blank lines and required space. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
1 parent 4fbd8d1 commit adf4e28

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎drivers/clk/mvebu/armada-37xx-periph.c‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ static const struct clk_div_table clk_table2[] = {
7979
{ .val = 1, .div = 4, },
8080
{ .val = 0, .div = 0, }, /* last entry */
8181
};
82+
8283
static const struct clk_ops clk_double_div_ops;
8384

8485
#define PERIPH_GATE(_name, _bit) \
@@ -217,7 +218,7 @@ PERIPH_CLK_FULL(counter, 23, 20, DIV_SEL0, 23, clk_table6);
217218
PERIPH_CLK_FULL_DD(eip97, 24, 24, DIV_SEL2, DIV_SEL2, 22, 19);
218219
PERIPH_CLK_MUX_DIV(cpu, 22, DIV_SEL0, 28, clk_table6);
219220

220-
static struct clk_periph_data data_nb[] ={
221+
static struct clk_periph_data data_nb[] = {
221222
REF_CLK_FULL_DD(mmc),
222223
REF_CLK_FULL_DD(sata_host),
223224
REF_CLK_FULL_DD(sec_at),
@@ -281,7 +282,7 @@ static unsigned int get_div(void __iomem *reg, int shift)
281282
}
282283

283284
static unsigned long clk_double_div_recalc_rate(struct clk_hw *hw,
284-
unsigned long parent_rate)
285+
unsigned long parent_rate)
285286
{
286287
struct clk_double_div *double_div = to_clk_double_div(hw);
287288
unsigned int div;
@@ -303,6 +304,7 @@ static const struct of_device_id armada_3700_periph_clock_of_match[] = {
303304
.data = data_sb, },
304305
{ }
305306
};
307+
306308
static int armada_3700_add_composite_clk(const struct clk_periph_data *data,
307309
void __iomem *reg, spinlock_t *lock,
308310
struct device *dev, struct clk_hw **hw)
@@ -355,9 +357,9 @@ static int armada_3700_add_composite_clk(const struct clk_periph_data *data,
355357
}
356358

357359
*hw = clk_hw_register_composite(dev, data->name, data->parent_names,
358-
data->num_parents, mux_hw,
359-
mux_ops, rate_hw, rate_ops,
360-
gate_hw, gate_ops, CLK_IGNORE_UNUSED);
360+
data->num_parents, mux_hw,
361+
mux_ops, rate_hw, rate_ops,
362+
gate_hw, gate_ops, CLK_IGNORE_UNUSED);
361363

362364
if (IS_ERR(*hw))
363365
return PTR_ERR(*hw);
@@ -406,12 +408,11 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev)
406408
if (armada_3700_add_composite_clk(&data[i], reg,
407409
&driver_data->lock, dev, hw))
408410
dev_err(dev, "Can't register periph clock %s\n",
409-
data[i].name);
410-
411+
data[i].name);
411412
}
412413

413414
ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get,
414-
driver_data->hw_data);
415+
driver_data->hw_data);
415416
if (ret) {
416417
for (i = 0; i < num_periph; i++)
417418
clk_hw_unregister(driver_data->hw_data->hws[i]);

0 commit comments

Comments
 (0)