]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
backlight: hp680_bl: fix checkpatch error and warning
authorJingoo Han <jg1.han@samsung.com>
Thu, 25 Oct 2012 01:14:57 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Nov 2012 05:00:52 +0000 (16:00 +1100)
This patch fixes the checkpatch error and warning as below:

WARNING: please, no space before tabs
WARNING: please, no spaces at the start of a line
ERROR: do not initialise statics to 0 or NULL
ERROR: code indent should use tabs where possible

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/hp680_bl.c

index 38aa002721416d2b195f6673f610216b5f77527e..191fbedf02ea029285cce80384269b9217004dc0 100644 (file)
@@ -26,7 +26,7 @@
 #define HP680_DEFAULT_INTENSITY 10
 
 static int hp680bl_suspended;
-static int current_intensity = 0;
+static int current_intensity;
 static DEFINE_SPINLOCK(bl_lock);
 
 static void hp680bl_send_intensity(struct backlight_device *bd)
@@ -168,7 +168,7 @@ static int __init hp680bl_init(void)
 static void __exit hp680bl_exit(void)
 {
        platform_device_unregister(hp680bl_device);
-       platform_driver_unregister(&hp680bl_driver);
+       platform_driver_unregister(&hp680bl_driver);
 }
 
 module_init(hp680bl_init);