public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Luming Yu <luming.yu@gmail.com>
Cc: Matt Domsch <Matt_Domsch@dell.com>,
	len.brown@intel.com, Richard Hughes <hughsient@gmail.com>,
	Andrew Morton <akpm@osdl.org>,
	Alessandro Guido <alessandro.guido@gmail.com>,
	linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	jengelh@linux01.gwdg.de, gelma@gelma.net, ismail@pardus.org.tr
Subject: Re: [PATCH 2.6.18-mm2] acpi: add backlight support to the sony_acpi driver
Date: Sun, 29 Oct 2006 18:50:05 +0100	[thread overview]
Message-ID: <20061029175005.GA3200@elf.ucw.cz> (raw)
In-Reply-To: <200610280124.57212.luming.yu@gmail.com>

Hi!

> > Some whitespace is not okay there...
> > 									Pavel
> 
> updated version.

> index 27597c5..1a18cdb 100644
> --- a/drivers/video/backlight/backlight.c
> +++ b/drivers/video/backlight/backlight.c
> @@ -190,7 +190,7 @@ static int fb_notifier_callback(struct n
>   * Creates and registers new backlight class_device. Returns either an
>   * ERR_PTR() or a pointer to the newly allocated device.
>   */
> -struct backlight_device *backlight_device_register(const char *name, void *devdata,
> +struct backlight_device *backlight_device_register(const char *name,struct device *dev,  void *devdata,
>  						   struct

80-columns, and fix the whitespace, please.

> --- /dev/null
> +++ b/drivers/video/output.c
> @@ -0,0 +1,110 @@
> +/*
> + * Video output switch support
> + */

I guess this one needs copyright/GPL.

> +	struct output_device *new_dev;
> +	int	ret_code = 0;

Indentation is wrong where... 

> +	new_dev = (struct output_device *) kzalloc( sizeof(struct
output_device), GFP_KERNEL);

Cast should not be needed.

> +	strlcpy(new_dev->class_dev.class_id, name, KOBJ_NAME_LEN);
> +	class_set_devdata(&new_dev->class_dev, devdata);
> +	ret_code = class_device_register(&new_dev->class_dev);
> +	if (ret_code){

") {", please.

> +		kfree (new_dev);

..and no space between kfree and its arguments.


> @@ -0,0 +1,27 @@
> +The output sysfs class driver is to provide video output abstract layer that can be used to hook platform specific methods to enable/disable video output device through common sysfs interface.
> +

80-columns, please. And some title would be nice.

> @@ -141,11 +144,11 @@ struct acpi_video_device_cap {
>  	u8 _ADR:1;		/*Return the unique ID */
>  	u8 _BCL:1;		/*Query list of brightness control levels supported */
>  	u8 _BCM:1;		/*Set the brightness level */
> +	u8 _BQC:1;		/*Get current brightness level */
>  	u8 _DDC:1;		/*Return the EDID for this device */
>  	u8 _DCS:1;		/*Return status of output device */
>  	u8 _DGS:1;		/*Query graphics state */
>  	u8 _DSS:1;		/*Device state set */

It is nicer to have space between /* and comment.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2006-10-29 17:51 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-30 17:08 [PATCH 2.6.18-mm2] acpi: add backlight support to the sony_acpi driver Alessandro Guido
2006-09-30 17:14 ` Alessandro Guido
2006-09-30 17:31   ` Jan Engelhardt
2006-10-02  0:19 ` Andrew Morton
2006-10-02  0:39   ` Matt Domsch
2006-10-02  0:48     ` Matt Domsch
2006-10-05 10:36     ` Pavel Machek
2006-10-06 21:17       ` Matt Domsch
2006-10-06 22:44         ` Pavel Machek
2006-10-10 14:32         ` Yu Luming
2006-10-10 14:47           ` Richard Hughes
2006-10-10 16:10             ` Matt Domsch
2006-10-11 16:28               ` Yu Luming
2006-10-16 17:45                 ` Yu Luming
2006-10-25  7:07                   ` Pavel Machek
2006-10-25 17:26                     ` Luming Yu
2006-10-29 17:50                       ` Pavel Machek [this message]
2006-10-30 15:49                         ` Luming Yu
2006-10-25 17:27                     ` Luming Yu
2006-10-10 21:26           ` Matthew Garrett
2006-10-11  3:02             ` Matt Domsch
2006-10-11  3:16               ` Matthew Garrett
2006-10-11 16:37               ` Yu Luming
2006-10-11  6:59             ` Arjan van de Ven
2006-10-11  7:04               ` Matthew Garrett
2006-10-11  8:04                 ` Ismail Donmez
2006-10-11  8:12                   ` Matthew Garrett
2006-10-11 16:31                   ` Yu Luming
2006-10-11 16:45                     ` Ismail Donmez
2006-10-02 10:29   ` Holger Macht
2006-10-02 11:25   ` Alessandro Guido
2006-10-10 15:17     ` Yu Luming
2006-10-10 15:22       ` Richard Hughes
2006-10-10 21:23       ` Matthew Garrett
2006-10-11  3:20         ` Dmitry Torokhov
2006-10-11 16:48           ` Yu Luming
2006-10-11 19:08             ` Dmitry Torokhov

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=20061029175005.GA3200@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=Matt_Domsch@dell.com \
    --cc=akpm@osdl.org \
    --cc=alessandro.guido@gmail.com \
    --cc=gelma@gelma.net \
    --cc=hughsient@gmail.com \
    --cc=ismail@pardus.org.tr \
    --cc=jengelh@linux01.gwdg.de \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luming.yu@gmail.com \
    /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