[PATCH] staging: sm750fb: fixed a assignment typo

Subsystems: staging - silicon motion sm750 frame buffer driver, staging subsystem, the rest

STALE3336d

2 messages, 2 authors, 2017-07-03 · open the first message on its own page

[PATCH] staging: sm750fb: fixed a assignment typo

From: Lynn Lei <hidden>
Date: 2017-07-02 04:39:34

Fixed a typo issue in get_mxclk_freq().

Signed-off-by: Lynn Lei <redacted>
---
 drivers/staging/sm750fb/ddk750_chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 5e4bfb601cea..c51761221131 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -40,7 +40,7 @@ static unsigned int get_mxclk_freq(void)
 
 	pll_reg = peek32(MXCLK_PLL_CTRL);
 	M = (pll_reg & PLL_CTRL_M_MASK) >> PLL_CTRL_M_SHIFT;
-	N = (pll_reg & PLL_CTRL_N_MASK) >> PLL_CTRL_M_SHIFT;
+	N = (pll_reg & PLL_CTRL_N_MASK) >> PLL_CTRL_N_SHIFT;
 	OD = (pll_reg & PLL_CTRL_OD_MASK) >> PLL_CTRL_OD_SHIFT;
 	POD = (pll_reg & PLL_CTRL_POD_MASK) >> PLL_CTRL_POD_SHIFT;
 
-- 
2.13.2

Re: [PATCH] staging: sm750fb: fixed a assignment typo

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2017-07-03 06:30:23

On Sun, Jul 02, 2017 at 12:39:24PM +0800, Lynn Lei wrote:
Fixed a typo issue in get_mxclk_freq().
What typo issue is that?  Please always be specific in the changelog
text.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help