<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/video/backlight/gpio_backlight.c, branch v4.4.73</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>gpio-backlight: Discover driver during boot time</title>
<updated>2015-06-23T14:28:46+00:00</updated>
<author>
<name>Arun Bharadwaj</name>
<email>arun@gumstix.com</email>
</author>
<published>2015-04-16T00:21:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4d866723d3e4f11b2e4b4f166f115f830bf5e481'/>
<id>4d866723d3e4f11b2e4b4f166f115f830bf5e481</id>
<content type='text'>
The gpio-backlight driver seems to be missing the
MODULE_DEVICE_TABLE line which is preventing it from
being modprobed during boot time even if the
gpio-backlight device exists.

This seems to be a bug and this patch attempts to
fix that.

Signed-off-by: Arun Bharadwaj &lt;arun@gumstix.com&gt;
Signed-off-by: Ash Charles &lt;ashcharles@gmail.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The gpio-backlight driver seems to be missing the
MODULE_DEVICE_TABLE line which is preventing it from
being modprobed during boot time even if the
gpio-backlight device exists.

This seems to be a bug and this patch attempts to
fix that.

Signed-off-by: Arun Bharadwaj &lt;arun@gumstix.com&gt;
Signed-off-by: Ash Charles &lt;ashcharles@gmail.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: Remove .owner field for drivers using module_platform_driver</title>
<updated>2014-08-28T13:09:48+00:00</updated>
<author>
<name>Peter Griffin</name>
<email>peter.griffin@linaro.org</email>
</author>
<published>2014-08-13T12:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6728f2b109392484d38ac9e365496ac5fa1071f1'/>
<id>6728f2b109392484d38ac9e365496ac5fa1071f1</id>
<content type='text'>
This patch removes the superflous .owner field for drivers which
use the module_platform_driver or platform_driver_register api,
as this is overriden in __platform_driver_register.

Signed-off-by: Peter Griffin &lt;peter.griffin@linaro.org&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch removes the superflous .owner field for drivers which
use the module_platform_driver or platform_driver_register api,
as this is overriden in __platform_driver_register.

Signed-off-by: Peter Griffin &lt;peter.griffin@linaro.org&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: Remove trivial get_brightness implementations</title>
<updated>2014-06-23T12:24:22+00:00</updated>
<author>
<name>Andrzej Hajda</name>
<email>a.hajda@samsung.com</email>
</author>
<published>2014-05-30T10:10:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a5d8e2e73c7f1dcee485d55225628317d8d441c0'/>
<id>a5d8e2e73c7f1dcee485d55225628317d8d441c0</id>
<content type='text'>
Since backlight core returns props.brightness in case get_brightness
is not implemented trivial implementations are not needed anymore.

Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since backlight core returns props.brightness in case get_brightness
is not implemented trivial implementations are not needed anymore.

Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: gpio-backlight: Fix warning when the GPIO is on a I2C chip</title>
<updated>2014-06-05T09:00:53+00:00</updated>
<author>
<name>Tony Lindgren</name>
<email>tony@atomide.com</email>
</author>
<published>2014-05-09T01:24:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ab1e59b4dc0370734ab3afb8de0c10a6f5a211ad'/>
<id>ab1e59b4dc0370734ab3afb8de0c10a6f5a211ad</id>
<content type='text'>
If the GPIO for the backlight is on an I2C chip, we currently
get nasty warnings like this during the boot:

WARNING: CPU: 0 PID: 6 at drivers/gpio/gpiolib.c:2364 gpiod_set_raw_value+0x40/0x4c()
Modules linked in:
CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted 3.15.0-rc4-12393-gcde9f4e #400
Workqueue: deferwq deferred_probe_work_func
[&lt;c0014cbc&gt;] (unwind_backtrace) from [&lt;c001191c&gt;] (show_stack+0x10/0x14)
[&lt;c001191c&gt;] (show_stack) from [&lt;c0566ae0&gt;] (dump_stack+0x80/0x9c)
[&lt;c0566ae0&gt;] (dump_stack) from [&lt;c003f61c&gt;] (warn_slowpath_common+0x68/0x8c)
[&lt;c003f61c&gt;] (warn_slowpath_common) from [&lt;c003f65c&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c003f65c&gt;] (warn_slowpath_null) from [&lt;c02f7e10&gt;] (gpiod_set_raw_value+0x40/0x4c)
[&lt;c02f7e10&gt;] (gpiod_set_raw_value) from [&lt;c0308fbc&gt;] (gpio_backlight_update_status+0x4c/0x74)
[&lt;c0308fbc&gt;] (gpio_backlight_update_status) from [&lt;c030914c&gt;] (gpio_backlight_probe+0x168/0x254)
[&lt;c030914c&gt;] (gpio_backlight_probe) from [&lt;c0378fa8&gt;] (platform_drv_probe+0x18/0x48)
[&lt;c0378fa8&gt;] (platform_drv_probe) from [&lt;c0377c40&gt;] (driver_probe_device+0x10c/0x238)
[&lt;c0377c40&gt;] (driver_probe_device) from [&lt;c0376330&gt;] (bus_for_each_drv+0x44/0x8c)
[&lt;c0376330&gt;] (bus_for_each_drv) from [&lt;c0377afc&gt;] (device_attach+0x74/0x8c)
[&lt;c0377afc&gt;] (device_attach) from [&lt;c03771c4&gt;] (bus_probe_device+0x88/0xb0)
[&lt;c03771c4&gt;] (bus_probe_device) from [&lt;c03775c8&gt;] (deferred_probe_work_func+0x64/0x94)
[&lt;c03775c8&gt;] (deferred_probe_work_func) from [&lt;c00572e8&gt;] (process_one_work+0x1b4/0x4bc)
[&lt;c00572e8&gt;] (process_one_work) from [&lt;c00579d0&gt;] (worker_thread+0x11c/0x398)
[&lt;c00579d0&gt;] (worker_thread) from [&lt;c005dfd8&gt;] (kthread+0xc8/0xe4)
[&lt;c005dfd8&gt;] (kthread) from [&lt;c000e768&gt;] (ret_from_fork+0x14/0x2c)

Fix this by using gpio_set_value_cansleep() as suggested in
drivers/gpio/gpiolib.c:2364. This is what the other backlight drivers
are also doing.

Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the GPIO for the backlight is on an I2C chip, we currently
get nasty warnings like this during the boot:

WARNING: CPU: 0 PID: 6 at drivers/gpio/gpiolib.c:2364 gpiod_set_raw_value+0x40/0x4c()
Modules linked in:
CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted 3.15.0-rc4-12393-gcde9f4e #400
Workqueue: deferwq deferred_probe_work_func
[&lt;c0014cbc&gt;] (unwind_backtrace) from [&lt;c001191c&gt;] (show_stack+0x10/0x14)
[&lt;c001191c&gt;] (show_stack) from [&lt;c0566ae0&gt;] (dump_stack+0x80/0x9c)
[&lt;c0566ae0&gt;] (dump_stack) from [&lt;c003f61c&gt;] (warn_slowpath_common+0x68/0x8c)
[&lt;c003f61c&gt;] (warn_slowpath_common) from [&lt;c003f65c&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c003f65c&gt;] (warn_slowpath_null) from [&lt;c02f7e10&gt;] (gpiod_set_raw_value+0x40/0x4c)
[&lt;c02f7e10&gt;] (gpiod_set_raw_value) from [&lt;c0308fbc&gt;] (gpio_backlight_update_status+0x4c/0x74)
[&lt;c0308fbc&gt;] (gpio_backlight_update_status) from [&lt;c030914c&gt;] (gpio_backlight_probe+0x168/0x254)
[&lt;c030914c&gt;] (gpio_backlight_probe) from [&lt;c0378fa8&gt;] (platform_drv_probe+0x18/0x48)
[&lt;c0378fa8&gt;] (platform_drv_probe) from [&lt;c0377c40&gt;] (driver_probe_device+0x10c/0x238)
[&lt;c0377c40&gt;] (driver_probe_device) from [&lt;c0376330&gt;] (bus_for_each_drv+0x44/0x8c)
[&lt;c0376330&gt;] (bus_for_each_drv) from [&lt;c0377afc&gt;] (device_attach+0x74/0x8c)
[&lt;c0377afc&gt;] (device_attach) from [&lt;c03771c4&gt;] (bus_probe_device+0x88/0xb0)
[&lt;c03771c4&gt;] (bus_probe_device) from [&lt;c03775c8&gt;] (deferred_probe_work_func+0x64/0x94)
[&lt;c03775c8&gt;] (deferred_probe_work_func) from [&lt;c00572e8&gt;] (process_one_work+0x1b4/0x4bc)
[&lt;c00572e8&gt;] (process_one_work) from [&lt;c00579d0&gt;] (worker_thread+0x11c/0x398)
[&lt;c00579d0&gt;] (worker_thread) from [&lt;c005dfd8&gt;] (kthread+0xc8/0xe4)
[&lt;c005dfd8&gt;] (kthread) from [&lt;c000e768&gt;] (ret_from_fork+0x14/0x2c)

Fix this by using gpio_set_value_cansleep() as suggested in
drivers/gpio/gpiolib.c:2364. This is what the other backlight drivers
are also doing.

Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: gpio-backlight: Add DT support</title>
<updated>2014-04-08T12:20:40+00:00</updated>
<author>
<name>Denis Carikli</name>
<email>denis@eukrea.com</email>
</author>
<published>2014-02-27T14:28:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9a6adb339e5d1827da5e8b2459b12863d72ed3e7'/>
<id>9a6adb339e5d1827da5e8b2459b12863d72ed3e7</id>
<content type='text'>
Signed-off-by: Denis Carikli &lt;denis@eukrea.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Denis Carikli &lt;denis@eukrea.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: gpio_backlight: use devm_backlight_device_register()</title>
<updated>2013-11-13T03:09:17+00:00</updated>
<author>
<name>Jingoo Han</name>
<email>jg1.han@samsung.com</email>
</author>
<published>2013-11-12T23:09:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ff47201582a5bbe6d14d2004e637351c41f78214'/>
<id>ff47201582a5bbe6d14d2004e637351c41f78214</id>
<content type='text'>
Use devm_backlight_device_register() to make cleanup paths simpler, and
remove unnecessary remove().

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use devm_backlight_device_register() to make cleanup paths simpler, and
remove unnecessary remove().

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: use dev_get_platdata()</title>
<updated>2013-11-13T03:09:16+00:00</updated>
<author>
<name>Jingoo Han</name>
<email>jg1.han@samsung.com</email>
</author>
<published>2013-11-12T23:09:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c512794cada491e008eeca822af7e4ad5db72a56'/>
<id>c512794cada491e008eeca822af7e4ad5db72a56</id>
<content type='text'>
Use the wrapper function for retrieving the platform data instead of
accessing dev-&gt;platform_data directly.  This is a cosmetic change to
make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the wrapper function for retrieving the platform data instead of
accessing dev-&gt;platform_data directly.  This is a cosmetic change to
make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backlight: Add GPIO-based backlight driver</title>
<updated>2013-07-16T04:01:05+00:00</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2013-07-04T19:13:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8b770e3c9824c98eafe67950ad6e41e09ec9c98a'/>
<id>8b770e3c9824c98eafe67950ad6e41e09ec9c98a</id>
<content type='text'>
The GPIO backlight driver controls the backlight in on/off mode through
a single GPIO.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Simon Horman &lt;horms+renesas@verge.net.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The GPIO backlight driver controls the backlight in on/off mode through
a single GPIO.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Simon Horman &lt;horms+renesas@verge.net.au&gt;
</pre>
</div>
</content>
</entry>
</feed>
