<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/video/backlight/gpio_backlight.c, branch linux-4.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-08-07T16:11:28Z</updated>
<entry>
<title>backlight: gpio_backlight: Delete pdata inversion</title>
<updated>2017-08-07T16:11:28Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2017-05-30T11:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2606706e4d7b89ebf13f35895a7dfe00e394e782'/>
<id>urn:sha1:2606706e4d7b89ebf13f35895a7dfe00e394e782</id>
<content type='text'>
The option to invert the output of the GPIO (active low) is
not used by the only platform still using platform data to
set up a GPIO backlight (one SH board). Delete the option
as we do not expect to expand the use of board files for
this driver, and GPIO descriptors intrinsically keep track
of any signal inversion.

Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
</entry>
<entry>
<title>backlight: gpio_backlight: Convert to use GPIO descriptor</title>
<updated>2017-08-07T16:04:32Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2017-05-30T11:48:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=de7389003ab77fc63296b2adee4cd9c48dc41d5a'/>
<id>urn:sha1:de7389003ab77fc63296b2adee4cd9c48dc41d5a</id>
<content type='text'>
This driver is predominantly used by device tree systems, all
of which can deal with modern GPIO descriptors. The legacy
GPIO API is only used by one SH board so make the GPIO
descriptor the default way to deal with it.

As an intended side effect we do not need to look around in
the device tree for the inversion flag since the GPIO
descriptors will intrinsically deal with this.

Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
</entry>
<entry>
<title>backlight: gpio-backlight: Use default-on on GPIO request</title>
<updated>2016-01-11T07:58:35Z</updated>
<author>
<name>Stefan Agner</name>
</author>
<published>2015-10-23T23:44:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f4647a149943b1f87e46858e9f13e02010347f7'/>
<id>urn:sha1:2f4647a149943b1f87e46858e9f13e02010347f7</id>
<content type='text'>
There are situations where the backlight should be on at boot time
(e.g. if the boot loader already turned the display on). The DT
bindings specify the "default-on" property for that purpose.
Currently, the initial state of the GPIO at request time is always
set to logical off (high or low depending on whether it is an
active high or low GPIO). Since the GPIO is requested as an output,
the GPIO will be driven low for a short period of time, which leads
to a flickering display in the above use-case.

Initialize the GPIO depending on the default-on property to be
logical on or off.

Signed-off-by: Stefan Agner &lt;stefan@agner.ch&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpio-backlight: Discover driver during boot time</title>
<updated>2015-06-23T14:28:46Z</updated>
<author>
<name>Arun Bharadwaj</name>
</author>
<published>2015-04-16T00:21:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d866723d3e4f11b2e4b4f166f115f830bf5e481'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>backlight: Remove .owner field for drivers using module_platform_driver</title>
<updated>2014-08-28T13:09:48Z</updated>
<author>
<name>Peter Griffin</name>
</author>
<published>2014-08-13T12:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6728f2b109392484d38ac9e365496ac5fa1071f1'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>backlight: Remove trivial get_brightness implementations</title>
<updated>2014-06-23T12:24:22Z</updated>
<author>
<name>Andrzej Hajda</name>
</author>
<published>2014-05-30T10:10:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5d8e2e73c7f1dcee485d55225628317d8d441c0'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>backlight: gpio-backlight: Fix warning when the GPIO is on a I2C chip</title>
<updated>2014-06-05T09:00:53Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2014-05-09T01:24:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab1e59b4dc0370734ab3afb8de0c10a6f5a211ad'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>backlight: gpio-backlight: Add DT support</title>
<updated>2014-04-08T12:20:40Z</updated>
<author>
<name>Denis Carikli</name>
</author>
<published>2014-02-27T14:28:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a6adb339e5d1827da5e8b2459b12863d72ed3e7'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>backlight: gpio_backlight: use devm_backlight_device_register()</title>
<updated>2013-11-13T03:09:17Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-11-12T23:09:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff47201582a5bbe6d14d2004e637351c41f78214'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>backlight: use dev_get_platdata()</title>
<updated>2013-11-13T03:09:16Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-11-12T23:09:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c512794cada491e008eeca822af7e4ad5db72a56'/>
<id>urn:sha1: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>
</entry>
</feed>
