staging: sm750fb: trivial style fixes.
cover staging: sm750fb: trivial style fixes.
Hello.
From January to February, there have been two trivial sm750fb patches submitted to linux-fbdev, one by me, one by Jin Chen, but both without any response. Further, it seems both maintainers, Sudip Mukherjee and Teddy Wang, are currently unavailable, getting an "Ack-by" would be unfeasible.
Since they're extremely trivial. Hereby, I picked them up, reworded commit message, and now resubmit them as trivial patches, and send them to [email protected]. I hope it could be directly applied by either a fbdev, a staging maintainer or by Jiri Kosina.
Thanks for your time!
Yifeng Li (2):
staging: sm750fb: trivial comment indention fix.
staging: sm750fb: trivial Camel Case removal for setDisplayControl().
drivers/staging/sm750fb/ddk750_display.c | 6 ++--- drivers/staging/sm750fb/sm750_accel.c | 32 ++++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-)
Signature · 1 line
2.20.1
PATCH RESEND 1/2 staging: sm750fb: trivial comment indention fix.
In function sm750_hw_copyarea() of sm750_accel.c, there are some comments in ASCII graphs, describing 4 possible scenarios of overlapping areas when copying an area. However, the graphs have broken indention.
The entire SiliconMotion series video controllers, including SM501, SM712 and SM750 have similar 2D engines, yet, I have not seen a single version of it with ASCII graphs properly formatted...
Fix the the misleading ASCII graphs. It would eliminate the confusions and improve code readability.
--- drivers/staging/sm750fb/sm750_accel.c | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +16 -16
@@ -155,26 +155,26 @@ unsigned int rop2) /* ROP value */if (sBase = dBase && sPitch = dPitch) {/* Determine direction of operation */ if (sy < dy) { -/* +----------+ -* |S | -* | +----------+ -* | | | | -* | | | | -* +---|------+ | -* | D| -* +----------+ +/* +----------+ +* |S | +* | +----------+ +* | | | | +* | | | | +* +---|------+ | +* | D| +* +----------+ */ nDirection =BOTTOM_TO_TOP ; }else if (sy > dy) { -/* +----------+ -* |D | -* | +----------+ -* | | | | -* | | | | -* +---|------+ | -* | S| -* +----------+ +/* +----------+ +* |D | +* | +----------+ +* | | | | +* | | | | +* +---|------+ | +* | S| +* +----------+ */ nDirection =TOP_TO_BOTTOM ;
Signature · 1 line
2.20.1
PATCH RESEND 2/2 staging: sm750fb: trivial Camel Case removal for setDisplayControl().
In reply to Yifeng LiRename the function setDisplayControl() to set_display_control(). This fixes the following checkpatch.pl warning:
CHECK: Avoid CamelCase: <setDisplayControl>
--- drivers/staging/sm750fb/ddk750_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/sm750fb/ddk750_display.c +3 -3
@@ -5,7 +5,7 @@#include "ddk750_power.h" #include "ddk750_dvi.h" -static void setDisplayControl (int ctrl,int disp_state) +static void set_display_control (int ctrl,int disp_state) {/* state != 0 means turn on both timing & plane en_bit */ unsigned long reg, val, reserved;
@@ -137,12 +137,12 @@ void ddk750_setLogicalDispOut(enum disp_output output)if (output &PRI_TP_USAGE ) {/* set primary timing and plane en_bit */ -setDisplayControl (0 , (output &PRI_TP_MASK ) >>PRI_TP_OFFSET ); +set_display_control (0 , (output &PRI_TP_MASK ) >>PRI_TP_OFFSET ); }if (output &SEC_TP_USAGE ) {/* set secondary timing and plane en_bit*/ -setDisplayControl (1 , (output &SEC_TP_MASK ) >>SEC_TP_OFFSET ); +set_display_control (1 , (output &SEC_TP_MASK ) >>SEC_TP_OFFSET ); }if (output &PNL_SEQ_USAGE ) {
Signature · 1 line
2.20.1
Greg Kroah-Hartman
maintainerRe: [RESEND][PATCH 2/2] staging: sm750fb: trivial Camel Case removal for setDisplayControl().
Quoted 9 lines · Yifeng Li
Rename the function
setDisplayControl()toset_display_control(). This fixes the following checkpatch.pl warning:CHECK: Avoid CamelCase: <setDisplayControl>
Suggested-by Jin Chen <[email protected]>Signed-off-by Jin Chen <[email protected]>[[email protected]: resent as trivial patch, reworded the commit message]Signed-off-by Yifeng Li <[email protected]>
I've already applied Jin's patch to the tree, so no need to resend this.
thanks,
greg k-h
Re: [RESEND][PATCH 2/2] staging: sm750fb: trivial Camel Case removal for setDisplayControl().
In reply to Yifeng LiQuoted 10 lines · Yifeng Li
Rename the function
setDisplayControl()toset_display_control(). This fixes the following checkpatch.pl warning:CHECK: Avoid CamelCase: <setDisplayControl>
Suggested-by Jin Chen <[email protected]>Signed-off-by Jin Chen <[email protected]>[[email protected]: resent as trivial patch, reworded the commit message]Signed-off-by Yifeng Li <[email protected]>---
Apparently Greg already applied this earlier... I don't know why the original patch didn't reach me. I'm on the [email protected] list.
Did Jin Chen write this? If so why does it have a Suggested-by tag for him? If not then you should have preserved the authorship credit by using the From: header in the first line on the commit message...
Anyway, it doesn't matter but hopefully this helps for next time.
regards,
dan carpenter
Greg Kroah-Hartman
maintainerQuoted 15 lines · Yifeng Li
Hello.
Quoted 1 line
From January to February, there have been two trivial sm750fb patches
submitted to linux-fbdev, one by me, one by Jin Chen, but both without any response. Further, it seems both maintainers, Sudip Mukherjee and Teddy Wang, are currently unavailable, getting an "Ack-by" would be unfeasible.
Since they're extremely trivial. Hereby, I picked them up, reworded commit message, and now resubmit them as trivial patches, and send them to [email protected]. I hope it could be directly applied by either a fbdev, a staging maintainer or by Jiri Kosina.
Thanks for your time!
Quoted 7 lines
Yifeng Li (2):
staging: sm750fb: trivial comment indention fix.
staging: sm750fb: trivial Camel Case removal forsetDisplayControl().drivers/staging/sm750fb/ddk750_display.c | 6 ++--- drivers/staging/sm750fb/sm750_accel.c | 32 ++++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-)
Always use scripts/get_maintainer.pl when sending patches in. It would have saved you time...
Anyway, my tree is closed right now, but I'll look at these once 5.1-rc1 is out, thanks.
greg k-h
Greg Kroah-Hartman
maintainerQuoted 8 lines · Yifeng Li
Hello.
Quoted 1 line
From January to February, there have been two trivial sm750fb patches
submitted to linux-fbdev, one by me, one by Jin Chen, but both without any response. Further, it seems both maintainers, Sudip Mukherjee and Teddy Wang, are currently unavailable, getting an "Ack-by" would be unfeasible.
Quoted 4 lines
Since they're extremely trivial. Hereby, I picked them up, reworded commit message, and now resubmit them as trivial patches, and send them to [email protected]. I hope it could be directly applied by either a fbdev, a staging maintainer or by Jiri Kosina.
staging patches need to go to me, as get_maintainers.pl says to send them. I'll queue these up in a bit, but no need to bother trivial@ with staging stuff, otherwise that would be all it did :)
thanks,
greg k-h