Thread (21 messages) 21 messages, 7 authors, 10d ago

Re: [PATCH 5/6] [v5] leds: gpio: make legacy gpiolib interface optional

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2026-06-29 15:58:51
Also in: linux-gpio, linux-leds, linux-sh, lkml

On Mon, Jun 29, 2026, at 17:09, Andy Shevchenko wrote:
On Mon, Jun 29, 2026 at 03:03:28PM +0200, Arnd Bergmann wrote:
quoted
 	gpiod = devm_gpiod_get_index_optional(dev, NULL, idx, GPIOD_OUT_LOW);
-	if (IS_ERR(gpiod))
-		return gpiod;
We can leave these and rather have

	gpiod_set_consumer_name(gpiod, template->name);
	return gpiod;

than introduce irregular pattern.
Ok, changed now.

      Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help