[PATCH] drm/nouveau/clk: add missing spaces after ',' and '{'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add missing spaces to clear checkpatch errors.

ERROR: space required before the open brace '{'
ERROR: space required before the open parenthesis '('

Signed-off-by: Ran Sun <sunran001@xxxxxxxxxx>
---
 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c
index 81f103f88dc8..f85d6a08c61a 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c
@@ -56,7 +56,7 @@ read_pll(struct mcp77_clk *clk, u32 base)
     u32 clock = 0;
     int N1, M1;

-    switch (base){
+    switch (base) {
     case 0x4020:
post_div = 1 << ((nvkm_rd32(device, 0x4070) & 0x000f0000) >> 16);
         break;
@@ -222,7 +222,7 @@ mcp77_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate)
         /* NVCTRL is actually used _after_ NVPOST, and after what we
          * call NVPLL. To make matters worse, NVPOST is an integer
          * divider instead of a right-shift number. */
-        if(P1 > 2) {
+        if (P1 > 2) {
             P2 = P1 - 2;
             P1 = 2;
         }
@@ -258,7 +258,7 @@ mcp77_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate)
     /* vclk */
     out = calc_P(core, vdec, &divs);
     clock = calc_P(500000, vdec, &P1);
-    if(abs(vdec - out) <= abs(vdec - clock)) {
+    if (abs(vdec - out) <= abs(vdec - clock)) {
         clk->vsrc = nv_clk_src_cclk;
         clk->vdiv = divs << 16;
     } else {



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux