2012-06-03 12:14:46

by Jeffrin Jose

[permalink] [raw]
Subject: [PATCH]drivers:leds:fixed a coding style issue.

Fixed a coding style issue relating to trailing
white space error found by checkpatch.pl tool in drivers/leds/led-class.c

Signed-off-by: Jeffrin Jose <[email protected]>
---
drivers/leds/led-class.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index 8ee92c8..e663e6f 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -29,7 +29,7 @@ static void led_update_brightness(struct led_classdev *led_cdev)
led_cdev->brightness = led_cdev->brightness_get(led_cdev);
}

-static ssize_t led_brightness_show(struct device *dev,
+static ssize_t led_brightness_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct led_classdev *led_cdev = dev_get_drvdata(dev);
--
1.7.10


2012-06-04 02:51:42

by Bryan Wu

[permalink] [raw]
Subject: Re: [PATCH]drivers:leds:fixed a coding style issue.

On Sun, Jun 3, 2012 at 8:11 PM, Jeffrin Jose <[email protected]> wrote:
> Fixed a coding style issue relating to trailing
> white space error found by checkpatch.pl tool in drivers/leds/led-class.c
>
> Signed-off-by: Jeffrin Jose <[email protected]>

OK, applied in my fixes-for-3.5 branch and changed the subject to
"leds: fixed a coding style issue."

Thanks,
-Bryan

> ---
> ?drivers/leds/led-class.c | ? ?2 +-
> ?1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
> index 8ee92c8..e663e6f 100644
> --- a/drivers/leds/led-class.c
> +++ b/drivers/leds/led-class.c
> @@ -29,7 +29,7 @@ static void led_update_brightness(struct led_classdev *led_cdev)
> ? ? ? ? ? ? ? ?led_cdev->brightness = led_cdev->brightness_get(led_cdev);
> ?}
>
> -static ssize_t led_brightness_show(struct device *dev,
> +static ssize_t led_brightness_show(struct device *dev,
> ? ? ? ? ? ? ? ?struct device_attribute *attr, char *buf)
> ?{
> ? ? ? ?struct led_classdev *led_cdev = dev_get_drvdata(dev);
> --
> 1.7.10
>



--
Bryan Wu <[email protected]>
Kernel Developer ? ?+86.186-168-78255 Mobile
Canonical Ltd. ? ? ?http://www.canonical.com
Ubuntu - Linux for human beings | http://www.ubuntu.com