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

2017-07-03 Thread Lynn Lei
fixed a typo issue in get_mxclk_freq() function. the original code using PLL_CTRL_M_SHIFT for shifting to set N flag. which is not right, it should be PLL_CTRL_N_SHIFT. both PLL_CTRL_M_SHIFT and PLL_CTRL_N_SHIFT defined in drivers/staging/sm750fb/ddk750_reg.h Signed-off-by: Lynn Lei <ly

[PATCH] staging: sm750fb: skip unnecessary comparisons

2017-07-02 Thread Lynn Lei
introduced early checks to skip unnecessary comparisons when flags set. Signed-off-by: Lynn Lei <lynnl@gmail.com> --- drivers/staging/sm750fb/sm750.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/s

[PATCH v2] staging: sm750fb: refactor method and fix potential type inconsistence

2017-07-02 Thread Lynn Lei
include PANEL_DISPLAY_CTRL_FPVDDEN control mask Signed-off-by: Lynn Lei <lynnl@gmail.com> --- drivers/staging/sm750fb/ddk750_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_display.c b/drivers/staging/sm750fb/ddk750_dis

[PATCH] staging: sm750fb: refactor method and fix potential type inconsistence

2017-07-02 Thread Lynn Lei
make reg variable typed `u32' not `unsigned int' this can fix potential type inconsistence in some platforms refactor swPanelPowerSequence() make the code less redundant a early check for disp to skip unnecessary delay Signed-off-by: Lynn Lei <lynnl@gmail.com> --- drivers/staging/s

[PATCH] staging: sm750fb: refactor the clock frequency calculation method

2017-07-02 Thread Lynn Lei
speed up calculation by merging two divisions into one. Signed-off-by: Lynn Lei <lynnl@gmail.com> --- 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

[PATCH] staging: sm750fb: fixed a assignment typo

2017-07-01 Thread Lynn Lei
Fixed a typo issue in get_mxclk_freq(). Signed-off-by: Lynn Lei <lynnl@gmail.com> --- 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 5e4bfb

[PATCH] staging: sm750fb: Combine set GPIO 30 & 31 into one statement

2017-04-25 Thread Lynn Lei
Combine two separate set GPIO(30 & 31) operations into one statement. Signed-off-by: Lynn Lei <lynnl...@outlook.com> --- drivers/staging/sm750fb/ddk750_hwi2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_hwi2c.c b/drivers/stagi