From: Sascha Hauer <s.hauer@pengutronix.de>
To: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH] i.MX Framebuffer: Cleanup Coding style
Date: Thu, 21 Aug 2008 09:13:36 +0200 [thread overview]
Message-ID: <20080821071336.GY4713@pengutronix.de> (raw)
In-Reply-To: <20080820193543.ba08c191.krzysztof.h1@poczta.fm>
On Wed, Aug 20, 2008 at 07:35:43PM +0200, Krzysztof Helt wrote:
> On Wed, 20 Aug 2008 18:15:21 +0200
> Sascha Hauer <s.hauer@pengutronix.de> wrote:
>
> > On Wed, Aug 20, 2008 at 05:35:01PM +0200, Krzysztof Helt wrote:
> > > On Tue, 19 Aug 2008 17:06:42 +0200
> > > Sascha Hauer <s.hauer@pengutronix.de> wrote:
> > >
> > > > Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > > > ---
> > > > drivers/video/imxfb.c | 78 +++++++++++++++++++++++++------------------------
> > > > 1 files changed, 40 insertions(+), 38 deletions(-)
> > > >
> > >
> > > I don't like some of the changes like wrapping lines
> > > which are not longer than 80 characters or removing
> > > alignment vs previous line because it contains spaces.
> > > There are also positive CS changes so not everything is bad.
> >
> > Hm, this patch only wraps lines longer than 80 characters (in one case
> > it even merges two lines to one because it's still shorter than 80
> > chars).
>
> The change around line 250 wraps 80 chars line.
>
> @@ -250,7 +249,8 @@ imxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
>
> case FB_VISUAL_STATIC_PSEUDOCOLOR:
> case FB_VISUAL_PSEUDOCOLOR:
> - ret = imxfb_setpalettereg(regno, red, green, blue, trans, info);
> + ret = imxfb_setpalettereg(regno, red, green, blue, trans,
> + info);
Ok, you're right. I just saw my cursor blinking on position 81, but of
course that means the line is 80 characters long. My bad
> break;
> }
>
>
> > It also does not remove alignment vs the previous line, instead
> > it aligns some lines against the previous line.
>
>
> @@ -185,7 +184,7 @@ static inline u_int chan_to_field(u_int chan, struct fb_bitfield *bf)
>
> static int
> imxfb_setpalettereg(u_int regno, u_int red, u_int green, u_int blue,
> - u_int trans, struct fb_info *info)
> + u_int trans, struct fb_info *info)
> {
> struct imxfb_info *fbi = info->par;
> u_int val, ret = 1;
>
> The removed line was previously aligned to start after the "(" in the previous line.
> One could move "static int" into the same line.
>
> You have added spaces between sizeof operator and the opening parenthesis.
> It is pointed out by the checkpatch script.
Ah, yes. This one I have copied from a Lindent run.
>
> > Maybe reading whitespace
> > changes in patches is a bit confusing because the +/- at line starts
> > mess it up.
> >
>
> The changes I pointed above are ones I don't like. They are not
> bringing any benefit (nor better CS conformance nor readability).
>
> However, I recognize your patch does more positive changes then these
> pointed above. Also, my feelings toward some changes are my personal
> opinion and I won't block the patch you have posted. I would like
> to see the mentioned changes dropped but it is up to you.
I will rework it.
Regards,
Sascha
--
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
next prev parent reply other threads:[~2008-08-21 7:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 15:06 i.MX Framebuffer patches Sascha Hauer
2008-08-19 15:06 ` [PATCH] i.MX Framebuffer: remove gpio setup function Sascha Hauer
2008-08-20 15:52 ` Krzysztof Helt
2008-08-19 15:06 ` [PATCH] i.MX Framebuffer: Use iowrite/ioread instead of direct pointer deref Sascha Hauer
2008-08-20 15:31 ` Krzysztof Helt
2008-08-20 16:31 ` Sascha Hauer
2008-08-20 17:42 ` Krzysztof Helt
2008-08-20 20:23 ` Geert Uytterhoeven
2008-08-19 15:06 ` [PATCH] i.MX Framebuffer: Cleanup Coding style Sascha Hauer
2008-08-20 15:35 ` Krzysztof Helt
2008-08-20 16:15 ` Sascha Hauer
2008-08-20 17:35 ` Krzysztof Helt
2008-08-21 7:13 ` Sascha Hauer [this message]
2008-08-19 15:06 ` [PATCH] i.MX Framebuffer: rename imxfb_mach_info to imx_fb_platform_data Sascha Hauer
2008-08-20 15:51 ` Krzysztof Helt
2008-08-20 16:18 ` Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2008-09-02 11:24 i.MX framebuffer patches Sascha Hauer
2008-09-02 11:24 ` [PATCH] i.MX Framebuffer: Cleanup Coding style Sascha Hauer
2008-09-03 19:19 ` Krzysztof Helt
2008-09-04 7:59 ` Sascha Hauer
2008-09-04 11:20 ` Juergen Beisert
2008-09-02 11:24 ` Sascha Hauer
2008-09-04 12:31 krzysztof.h1
2008-09-04 15:08 ` Juergen Beisert
2008-09-04 18:58 ` Krzysztof Helt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080821071336.GY4713@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=krzysztof.h1@poczta.fm \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).