Jingoo Han
c915ae50d6
backlight: pcf50633: Add blank line after declarations
...
Fixed the following checkpatch warning.
WARNING: Missing a blank line after declarations
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Lee Jones <lee.jones@linaro.org >
2014-08-29 08:25:53 +01:00
Jingoo Han
c423a77121
backlight: pcf50633: use devm_backlight_device_register()
...
Use devm_backlight_device_register() to make cleanup paths simpler, and
remove unnecessary remove().
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2013-11-13 12:09:18 +09:00
Jingoo Han
c512794cad
backlight: use dev_get_platdata()
...
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change to
make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2013-11-13 12:09:16 +09:00
Jingoo Han
9ed3936fd7
backlight: pcf50633: remove unnecessary platform_set_drvdata()
...
The driver core clears the driver data to NULL after device_release or
on probe failure, since commit 0998d06310 ("device-core: Ensure drvdata
= NULL when no driver is bound").
Thus, it is not needed to manually clear the device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2013-07-03 16:07:43 -07:00
Jingoo Han
ae872dbba9
backlight: pcf50633: fix checkpatch warning
...
This patch fixes the checkpatch warning as below:
WARNING: please, no spaces at the start of a line
Also, long comments are fixed for the preferred style.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-12-17 17:15:15 -08:00
Bill Pemberton
7e4b9d0bb2
backlight: remove use of __devexit
...
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de >
Acked-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-28 12:06:39 -08:00
Bill Pemberton
1b9e450de1
backlight: remove use of __devinit
...
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de >
Acked-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-28 12:05:39 -08:00
Bill Pemberton
d1723fa266
backlight: remove use of __devexit_p
...
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de >
Acked-by: Jingoo Han <jg1.han@samsung.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-28 12:03:45 -08:00
Corentin Chary
f5f4fd4516
backlight: initialize struct backlight_properties properly
...
In all these files, the .power field was never correctly initialized.
Signed-off-by: Corentin Chary <corentin.chary@gmail.com >
Cc: Jingoo Han <jg1.han@samsung.com >
Cc: Dave Airlie <airlied@gmail.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-05-29 16:22:30 -07:00
Julia Lawall
ce969228fd
drivers/video/backlight: use devm_ functions
...
The various devm_ functions allocate memory that is released when a driver
detaches. This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Cc: Dimitris Papastamos <dp@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de >
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-03-23 16:58:33 -07:00
Axel Lin
81178e0216
backlight: convert drivers/video/backlight/* to use module_platform_driver()
...
Convert the drivers in drivers/video/backlight/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com >
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com > [ep93xx_bl.c]
Cc: Mike Rapoport <mike@compulab.co.il >
Cc: Richard Purdie <rpurdie@rpsys.net >
Acked-by: Michael Hennerich <michael.hennerich@analog.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:48 -08:00
Matthew Garrett
bb7ca747f8
backlight: add backlight type
...
There may be multiple ways of controlling the backlight on a given
machine. Allow drivers to expose the type of interface they are
providing, making it possible for userspace to make appropriate policy
decisions.
Signed-off-by: Matthew Garrett <mjg@redhat.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Chris Wilson <chris@chris-wilson.co.uk >
Cc: David Airlie <airlied@linux.ie >
Cc: Alex Deucher <alexdeucher@gmail.com >
Cc: Ben Skeggs <bskeggs@redhat.com >
Cc: Zhang Rui <rui.zhang@intel.com >
Cc: Len Brown <lenb@kernel.org >
Cc: Jesse Barnes <jbarnes@virtuousgeek.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-03-22 17:43:59 -07:00
Lars-Peter Clausen
2ddfd12f35
backlight: Add pcf50633 backlight driver
...
This patch adds a backlight driver for controlling the pcf50633 LED module.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Acked-by: Samuel Ortiz <sameo@linux.intel.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-05-26 17:34:38 +01:00