Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip KNF. 80 columns, use tab. NFC.
details: https://anonhg.NetBSD.org/src/rev/d875fb9e14b2
branches: trunk
changeset: 370152:d875fb9e14b2
user: ryo <ryo%NetBSD.org@localhost>
date: Sun Sep 18 21:33:57 2022 +0000
description:
KNF. 80 columns, use tab. NFC.
diffstat:
sys/arch/arm/rockchip/rk_cru.c | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diffs (87 lines):
diff -r 4031aee09060 -r d875fb9e14b2 sys/arch/arm/rockchip/rk_cru.c
--- a/sys/arch/arm/rockchip/rk_cru.c Sun Sep 18 19:24:14 2022 +0000
+++ b/sys/arch/arm/rockchip/rk_cru.c Sun Sep 18 21:33:57 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_cru.c,v 1.9 2018/11/17 16:51:51 jakllsch Exp $ */
+/* $NetBSD: rk_cru.c,v 1.10 2022/09/18 21:33:57 ryo Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include "opt_console.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_cru.c,v 1.9 2018/11/17 16:51:51 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_cru.c,v 1.10 2022/09/18 21:33:57 ryo Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -144,7 +144,8 @@
clkp_parent = clk_get_parent(clkp);
if (clkp_parent == NULL) {
- aprint_debug("%s: no parent for %s\n", __func__, clk->base.name);
+ aprint_debug("%s: no parent for %s\n", __func__,
+ clk->base.name);
return 0;
}
@@ -161,7 +162,8 @@
if (clkp->flags & CLK_SET_RATE_PARENT) {
clkp_parent = clk_get_parent(clkp);
if (clkp_parent == NULL) {
- aprint_error("%s: no parent for %s\n", __func__, clk->base.name);
+ aprint_error("%s: no parent for %s\n", __func__,
+ clk->base.name);
return ENXIO;
}
return clk_set_rate(clkp_parent, rate);
@@ -183,7 +185,8 @@
if (clkp->flags & CLK_SET_RATE_PARENT) {
clkp_parent = clk_get_parent(clkp);
if (clkp_parent == NULL) {
- aprint_error("%s: no parent for %s\n", __func__, clk->base.name);
+ aprint_error("%s: no parent for %s\n", __func__,
+ clk->base.name);
return 0;
}
return clk_round_rate(clkp_parent, rate);
@@ -230,8 +233,7 @@
}
static int
-rk_cru_clock_set_parent(void *priv, struct clk *clkp,
- struct clk *clkp_parent)
+rk_cru_clock_set_parent(void *priv, struct clk *clkp, struct clk *clkp_parent)
{
struct rk_cru_softc * const sc = priv;
struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp;
@@ -298,7 +300,8 @@
int i;
if (of_hasprop(sc->sc_phandle, "rockchip,grf")) {
- sc->sc_grf = fdtbus_syscon_acquire(sc->sc_phandle, "rockchip,grf");
+ sc->sc_grf = fdtbus_syscon_acquire(sc->sc_phandle,
+ "rockchip,grf");
if (sc->sc_grf == NULL) {
aprint_error(": couldn't get grf syscon\n");
return ENXIO;
@@ -355,13 +358,13 @@
default: type = "???"; break;
}
- aprint_debug_dev(sc->sc_dev,
+ aprint_debug_dev(sc->sc_dev,
"%3d %-14s %2s %-14s %-7s ",
clk->id,
- clk->base.name,
- clkp_parent ? "<-" : "",
- clkp_parent ? clkp_parent->name : "",
- type);
+ clk->base.name,
+ clkp_parent ? "<-" : "",
+ clkp_parent ? clkp_parent->name : "",
+ type);
aprint_debug("%10d Hz\n", clk_get_rate(&clk->base));
}
}
Home |
Main Index |
Thread Index |
Old Index