<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/video/backlight/gpio_backlight.c, branch linux-5.3.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-5.3.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-5.3.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2019-07-16T16:25:04+00:00</updated>
<entry>
<title>Merge tag 'backlight-next-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight</title>
<updated>2019-07-16T16:25:04+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-07-16T16:25:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=50950626414a982c8ed539128c7f69a3d328a970'/>
<id>urn:sha1:50950626414a982c8ed539128c7f69a3d328a970</id>
<content type='text'>
Pull backlight updates from Lee Jones:
 "New Functionality:
   - Provide support for ACPI enumeration; gpio_backlight

  Fix-ups:
   - SPDX fixups; pwm_bl
   - Fix linear	brightness levels to include number available; pwm_bl"

* tag 'backlight-next-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
  backlight: pwm_bl: Fix heuristic to determine number of brightness levels
  backlight: gpio_backlight: Enable ACPI enumeration
  backlight: pwm_bl: Convert to use SPDX identifier
</content>
</entry>
<entry>
<title>backlight: gpio_backlight: Enable ACPI enumeration</title>
<updated>2019-06-27T06:09:05+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2019-06-19T15:21:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=98b7404eb7d64e55f8fdd419cb3965a8abf0e217'/>
<id>urn:sha1:98b7404eb7d64e55f8fdd419cb3965a8abf0e217</id>
<content type='text'>
ACPI allows to enumerate specific devices by using compatible strings.
Enable that enumeration for GPIO based backlight devices.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Acked-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500</title>
<updated>2019-06-19T15:09:55+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-06-04T08:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d2912cb15bdda8ba4a5dd73396ad62641af2f520'/>
<id>urn:sha1:d2912cb15bdda8ba4a5dd73396ad62641af2f520</id>
<content type='text'>
Based on 2 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 as
  published by the free software foundation

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 as
  published by the free software foundation #

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 4122 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;
Reviewed-by: Kate Stewart &lt;kstewart@linuxfoundation.org&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>backlight: gpio_backlight: Delete pdata inversion</title>
<updated>2017-08-07T16:11:28+00:00</updated>
<author>
<name>Linus Walleij</name>
<email>linus.walleij@linaro.org</email>
</author>
<published>2017-05-30T11:48:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.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:32+00:00</updated>
<author>
<name>Linus Walleij</name>
<email>linus.walleij@linaro.org</email>
</author>
<published>2017-05-30T11:48:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.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:35+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan@agner.ch</email>
</author>
<published>2015-10-23T23:44:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.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: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.radix-linux.su/kernel/linux.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: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.radix-linux.su/kernel/linux.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: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.radix-linux.su/kernel/linux.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: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.radix-linux.su/kernel/linux.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>
</feed>
