backlight: apple_bl: use pr_debug()/pr_err() instead of printk()
authorJingoo Han <[email protected]>
Tue, 29 May 2012 22:07:16 +0000 (15:07 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 May 2012 23:22:29 +0000 (16:22 -0700)
commit7b12c1b9ee6f66c12f9dc16f76474caa74dbc01f
tree55a36085b3dac5965d7e2684bacd762bea47930c
parent35f961623cee5212d4ee0baa8c34b1766913b36b
backlight: apple_bl: use pr_debug()/pr_err() instead of printk()

Use pr_debug()/pr_err() instead of printk() to allow dynamic debugging.
The pr_fmt prefix for pr_ macros is used.  Also fix checkpatch warnings as
below:

WARNING: Prefer pr_debug(... to printk(KERN_DEBUG, ...
WARNING: Prefer pr_err(... to printk(KERN_ERR, ...

[[email protected]: use KBUILD_MODNAME, per Joe]
Signed-off-by: Jingoo Han <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/apple_bl.c