Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Uwe Kleine-König
Hello Russell, > > Doh, right. Do you use a different checkpatch? I mean it doesn't react on > > that for me. > > No, all of the comments I've given were spotted by merely reading the patch. May I ask how you spot tab vs. 8 space problems? Do you apply the patch and check in an editor? Best

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
I made a mistake on the latest patch I sent, if (IS_ERR(bllcd->lcd_device)) { + ret = PTR_ERR(bllcd->bl_device); + backlight_device_unregister(bllcd->bl_device); + printk(KERN_ERR "lcd :failed to register device\n"); + kfree(bllcd); +

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2008 at 08:43:40PM +0100, Kristoffer Ericson wrote: > ATTEMPT #4. > --- > Fixed issues as suggested by Russell below. Great, I'm happy now. > Doh, right. Do you use a different checkpatch? I mean it doesn't react on > that for me. No, all of the comments I've given were

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
ATTEMPT #4. --- Fixed issues as suggested by Russell below. diff --git a/drivers/video/backlight/jornada720_bllcd.c b/drivers/video/backlight/jornada720_bllcd.c new file mode 100644 index 000..f3c3f26 --- /dev/null +++ b/drivers/video/backlight/jornada720_bllcd.c @@ -0,0 +1,290 @@

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2008 at 08:21:28PM +0100, Kristoffer Ericson wrote: > Oh, and thanks for all the feedback people! (and for doing it nicely) I'm afraid you missed one - and there's a better fix for one of the other points I made... 8) > +static int jornada_bl_probe(struct platform_device *pdev) >

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
Attempt #3 : Changes : - * removed JORN.. prefixes except from functions. * removed file location in head * fixed (hope) indent issues * do not exceed 80 chars per line * added extra checks if driver allocation fails * return -1 instead of (MAX + 1) ...and probably alot more. Patch: *

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Richard Purdie
On Wed, 2008-02-06 at 17:33 +0100, Kristoffer Ericson wrote: > Oki, here is attempt #2 (btw, new mail or just keep thread?) Apart from the issues Russell mentioned, --- /dev/null +++ b/drivers/video/backlight/jornada720_bllcd.c @@ -0,0 +1,286 @@ +/* + * drivers/video/backlight/jornada720_bllcd.c

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Sam Ravnborg
On Wed, Feb 06, 2008 at 05:33:41PM +0100, Kristoffer Ericson wrote: > > Oki, here is attempt #2 (btw, new mail or just keep thread?) keep thread to keep comments coming. But always when posting the updated patch include the full changelog. Document whats done since last posting below your s-o-b

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Roel Kluin
Kristoffer Ericson wrote: > Oki, here is attempt #2 (btw, new mail or just keep thread?) > > Tested to build and checkpatch. > > diff --git a/drivers/video/backlight/jornada720_bllcd.c > b/drivers/video/backlight/jornada720_bllcd.c > +static int jornada_bl_update_status(struct backlight_device

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2008 at 05:33:41PM +0100, Kristoffer Ericson wrote: > Oki, here is attempt #2 (btw, new mail or just keep thread?) Probably better to keep the thread. More comments 8) > +struct jornada_bllcd_device { > + struct backlight_device *jorn_backlight_device; > + struct

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
Oki, here is attempt #2 (btw, new mail or just keep thread?) Tested to build and checkpatch. diff --git a/drivers/video/backlight/jornada720_bllcd.c b/drivers/video/backlight/jornada720_bllcd.c new file mode 100644 index 000..e911a5e --- /dev/null +++

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
On Wed, 06 Feb 2008 13:34:12 +0100 Roel Kluin <[EMAIL PROTECTED]> wrote: > Kristoffer Ericson wrote: > > Greetings, > > > > Richard I've cleaned up the driver by checking with checkpatch.pl as > > Russell suggested. I would appreciate it if you could > > look through the patch again and give

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Roel Kluin
Roel Kluin wrote: > Kristoffer Ericson wrote: >> Greetings, >> >> Richard I've cleaned up the driver by checking with checkpatch.pl as Russell >> suggested. I would appreciate it if you could >> look through the patch again and give comments since the patch looks >> somewhat different. >> >> I

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Roel Kluin
Kristoffer Ericson wrote: > Greetings, > > Richard I've cleaned up the driver by checking with checkpatch.pl as Russell > suggested. I would appreciate it if you could > look through the patch again and give comments since the patch looks somewhat > different. > > I can add patch for

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Roel Kluin
Roel Kluin wrote: Kristoffer Ericson wrote: Greetings, Richard I've cleaned up the driver by checking with checkpatch.pl as Russell suggested. I would appreciate it if you could look through the patch again and give comments since the patch looks somewhat different. I can add patch for

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Roel Kluin
Kristoffer Ericson wrote: Greetings, Richard I've cleaned up the driver by checking with checkpatch.pl as Russell suggested. I would appreciate it if you could look through the patch again and give comments since the patch looks somewhat different. I can add patch for Kconfig/Makefile

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
On Wed, 06 Feb 2008 13:34:12 +0100 Roel Kluin [EMAIL PROTECTED] wrote: Kristoffer Ericson wrote: Greetings, Richard I've cleaned up the driver by checking with checkpatch.pl as Russell suggested. I would appreciate it if you could look through the patch again and give comments since

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2008 at 05:33:41PM +0100, Kristoffer Ericson wrote: Oki, here is attempt #2 (btw, new mail or just keep thread?) Probably better to keep the thread. More comments 8) +struct jornada_bllcd_device { + struct backlight_device *jorn_backlight_device; + struct lcd_device

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
Oki, here is attempt #2 (btw, new mail or just keep thread?) Tested to build and checkpatch. diff --git a/drivers/video/backlight/jornada720_bllcd.c b/drivers/video/backlight/jornada720_bllcd.c new file mode 100644 index 000..e911a5e --- /dev/null +++

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Roel Kluin
Kristoffer Ericson wrote: Oki, here is attempt #2 (btw, new mail or just keep thread?) Tested to build and checkpatch. diff --git a/drivers/video/backlight/jornada720_bllcd.c b/drivers/video/backlight/jornada720_bllcd.c +static int jornada_bl_update_status(struct backlight_device *dev)

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Sam Ravnborg
On Wed, Feb 06, 2008 at 05:33:41PM +0100, Kristoffer Ericson wrote: Oki, here is attempt #2 (btw, new mail or just keep thread?) keep thread to keep comments coming. But always when posting the updated patch include the full changelog. Document whats done since last posting below your s-o-b

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Richard Purdie
On Wed, 2008-02-06 at 17:33 +0100, Kristoffer Ericson wrote: Oki, here is attempt #2 (btw, new mail or just keep thread?) Apart from the issues Russell mentioned, --- /dev/null +++ b/drivers/video/backlight/jornada720_bllcd.c @@ -0,0 +1,286 @@ +/* + * drivers/video/backlight/jornada720_bllcd.c

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
Attempt #3 : Changes : - * removed JORN.. prefixes except from functions. * removed file location in head * fixed (hope) indent issues * do not exceed 80 chars per line * added extra checks if driver allocation fails * return -1 instead of (MAX + 1) ...and probably alot more. Patch: *

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2008 at 08:21:28PM +0100, Kristoffer Ericson wrote: Oh, and thanks for all the feedback people! (and for doing it nicely) I'm afraid you missed one - and there's a better fix for one of the other points I made... 8) +static int jornada_bl_probe(struct platform_device *pdev) +{

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
ATTEMPT #4. --- Fixed issues as suggested by Russell below. diff --git a/drivers/video/backlight/jornada720_bllcd.c b/drivers/video/backlight/jornada720_bllcd.c new file mode 100644 index 000..f3c3f26 --- /dev/null +++ b/drivers/video/backlight/jornada720_bllcd.c @@ -0,0 +1,290 @@

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2008 at 08:43:40PM +0100, Kristoffer Ericson wrote: ATTEMPT #4. --- Fixed issues as suggested by Russell below. Great, I'm happy now. Doh, right. Do you use a different checkpatch? I mean it doesn't react on that for me. No, all of the comments I've given were

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Kristoffer Ericson
I made a mistake on the latest patch I sent, if (IS_ERR(bllcd-lcd_device)) { + ret = PTR_ERR(bllcd-bl_device); + backlight_device_unregister(bllcd-bl_device); + printk(KERN_ERR lcd :failed to register device\n); + kfree(bllcd); +

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Uwe Kleine-König
Hello Russell, Doh, right. Do you use a different checkpatch? I mean it doesn't react on that for me. No, all of the comments I've given were spotted by merely reading the patch. May I ask how you spot tab vs. 8 space problems? Do you apply the patch and check in an editor? Best regards

[PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-05 Thread Kristoffer Ericson
Greetings, Richard I've cleaned up the driver by checking with checkpatch.pl as Russell suggested. I would appreciate it if you could look through the patch again and give comments since the patch looks somewhat different. I can add patch for Kconfig/Makefile later on but suspect there will be

[PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-05 Thread Kristoffer Ericson
Greetings, Richard I've cleaned up the driver by checking with checkpatch.pl as Russell suggested. I would appreciate it if you could look through the patch again and give comments since the patch looks somewhat different. I can add patch for Kconfig/Makefile later on but suspect there will be