<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/gpio, branch v6.8.6</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.8.6</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.8.6'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2024-02-13T10:02:53Z</updated>
<entry>
<title>gpiolib: add gpio_device_get_label() stub for !GPIOLIB</title>
<updated>2024-02-13T10:02:53Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>krzysztof.kozlowski@linaro.org</email>
</author>
<published>2024-01-25T08:16:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2df8aa3cad407044f2febdbbdf220c6dae839c79'/>
<id>urn:sha1:2df8aa3cad407044f2febdbbdf220c6dae839c79</id>
<content type='text'>
Add empty stub of gpio_device_get_label() when GPIOLIB is not enabled.

Cc: &lt;stable@vger.kernel.org&gt;
Fixes: d1f7728259ef ("gpiolib: provide gpio_device_get_label()")
Suggested-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: add gpio_device_get_base() stub for !GPIOLIB</title>
<updated>2024-02-13T10:02:52Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>krzysztof.kozlowski@linaro.org</email>
</author>
<published>2024-01-25T08:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ebe0c15b135b1e4092c25b95d89e9a5899467499'/>
<id>urn:sha1:ebe0c15b135b1e4092c25b95d89e9a5899467499</id>
<content type='text'>
Add empty stub of gpio_device_get_base() when GPIOLIB is not enabled.

Cc: &lt;stable@vger.kernel.org&gt;
Fixes: 8c85a102fc4e ("gpiolib: provide gpio_device_get_base()")
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: add gpiod_to_gpio_device() stub for !GPIOLIB</title>
<updated>2024-02-13T10:02:47Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>krzysztof.kozlowski@linaro.org</email>
</author>
<published>2024-01-25T08:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6ac86372102b477083db99a9af8246fb916271b5'/>
<id>urn:sha1:6ac86372102b477083db99a9af8246fb916271b5</id>
<content type='text'>
Add empty stub of gpiod_to_gpio_device() when GPIOLIB is not enabled.

Cc: &lt;stable@vger.kernel.org&gt;
Fixes: 370232d096e3 ("gpiolib: provide gpiod_to_gpio_device()")
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: Fix scope-based gpio_device refcounting</title>
<updated>2024-01-15T17:41:29Z</updated>
<author>
<name>Lukas Wunner</name>
<email>lukas@wunner.de</email>
</author>
<published>2024-01-15T15:05:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=832b371097eb928d077c827b8f117bf5b99d35c0'/>
<id>urn:sha1:832b371097eb928d077c827b8f117bf5b99d35c0</id>
<content type='text'>
Commit 9e4555d1e54a ("gpiolib: add support for scope-based management to
gpio_device") sought to add scope-based gpio_device refcounting, but
erroneously forgot a negation of IS_ERR_OR_NULL().

As a result, gpio_device_put() is not called if the gpio_device pointer
is valid (meaning the ref is leaked), but only called if the pointer is
NULL or an ERR_PTR().

While at it drop a superfluous trailing semicolon.

Fixes: 9e4555d1e54a ("gpiolib: add support for scope-based management to gpio_device")
Signed-off-by: Lukas Wunner &lt;lukas@wunner.de&gt;
Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: remove duplicate inclusions</title>
<updated>2023-12-18T08:53:05Z</updated>
<author>
<name>Wang Jinchao</name>
<email>wangjinchao@xfusion.com</email>
</author>
<published>2023-12-18T07:16:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5a2a2cda916335fff4d804e58f36b2305926841e'/>
<id>urn:sha1:5a2a2cda916335fff4d804e58f36b2305926841e</id>
<content type='text'>
Remove second `#include &lt;linux/err.h&gt;`. Remove `#include &lt;asm/errno.h&gt;`
too as it's included by `err.h`.

Signed-off-by: Wang Jinchao &lt;wangjinchao@xfusion.com&gt;
Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'gpio-remove-gpiochip_is_requested-for-v6.8-rc1' into gpio/for-next</title>
<updated>2023-12-08T08:37:12Z</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartosz.golaszewski@linaro.org</email>
</author>
<published>2023-12-08T08:37:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=11a94a335a582ae2b464e233a3171475716f113c'/>
<id>urn:sha1:11a94a335a582ae2b464e233a3171475716f113c</id>
<content type='text'>
gpio: remove gpiochip_is_requested()

- provide a safer alternative to gpiochip_is_requested()
- convert all existing users
- remove gpiochip_is_requested()
</content>
</entry>
<entry>
<title>gpiolib: remove gpiochip_is_requested()</title>
<updated>2023-12-08T08:26:43Z</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartosz.golaszewski@linaro.org</email>
</author>
<published>2023-12-04T09:35:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f8d05e276b45e3097dfddd628fa991ce69c05c99'/>
<id>urn:sha1:f8d05e276b45e3097dfddd628fa991ce69c05c99</id>
<content type='text'>
We have no external users of gpiochip_is_requested(). Let's remove it
and replace its internal calls with direct testing of the REQUESTED flag.

Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: use gpiochip_dup_line_label() in for_each helpers</title>
<updated>2023-12-08T08:26:40Z</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartosz.golaszewski@linaro.org</email>
</author>
<published>2023-12-04T09:35:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6fd9c9933475a3efd7eed2f80c7778908a560a1f'/>
<id>urn:sha1:6fd9c9933475a3efd7eed2f80c7778908a560a1f</id>
<content type='text'>
Rework for_each_requested_gpio_in_range() to use the new helper to
retrieve a dynamically allocated copy of the descriptor label and free
it at the end of each iteration. We need to leverage the CLASS()'
destructor to make sure that the label is freed even when breaking out
of the loop.

Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: provide gpiochip_dup_line_label()</title>
<updated>2023-12-08T08:25:53Z</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartosz.golaszewski@linaro.org</email>
</author>
<published>2023-12-04T09:35:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ee25fba76acd8324f9de6628872c8c612a684209'/>
<id>urn:sha1:ee25fba76acd8324f9de6628872c8c612a684209</id>
<content type='text'>
gpiochip_is_requested() not only has a misleading name but it returns
a pointer to a string that is freed when the descriptor is released.

Provide a new helper meant to replace it, which returns a copy of the
label string instead.

Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: provide gpio_device_get_label()</title>
<updated>2023-11-24T19:27:37Z</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartosz.golaszewski@linaro.org</email>
</author>
<published>2023-11-15T16:49:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d1f7728259ef02ac20b7afb6e7eb5a9eb1696c25'/>
<id>urn:sha1:d1f7728259ef02ac20b7afb6e7eb5a9eb1696c25</id>
<content type='text'>
Provide a getter for the GPIO device label string so that users don't
have to dereference struct gpio_chip directly.

Signed-off-by: Bartosz Golaszewski &lt;bartosz.golaszewski@linaro.org&gt;
</content>
</entry>
</feed>
