From: Jingoo Han Date: Tue, 23 Oct 2012 02:50:26 +0000 (+1100) Subject: backlight: hp680_bl: fix checkpatch error and warning X-Git-Tag: next-20121024~2^2~69 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=10ff687431ab4e2912a8798dc2287a2e7329ab8a;p=karo-tx-linux.git backlight: hp680_bl: fix checkpatch error and warning 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 Cc: Richard Purdie Signed-off-by: Andrew Morton --- diff --git a/drivers/video/backlight/hp680_bl.c b/drivers/video/backlight/hp680_bl.c index 38aa00272141..191fbedf02ea 100644 --- a/drivers/video/backlight/hp680_bl.c +++ b/drivers/video/backlight/hp680_bl.c @@ -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);