Linux-LEDs Archive on
 help / color / Atom feed
From: Linus Walleij <>
To: Jacek Anaszewski <>
Cc: Russell King - ARM Linux admin <>,
	Pavel Machek <>,
	Linux ARM <>,
	Linux LED Subsystem <>,
	"" <>
Subject: Re: "leds: gpio: Use generic support for composing LED names" breaks gpio debugfs
Date: Thu, 5 Dec 2019 00:45:51 +0100
Message-ID: <> (raw)
In-Reply-To: <>

On Wed, Dec 4, 2019 at 9:52 PM Jacek Anaszewski
<> wrote:

> It seem that the only proper solution would be introducing a new
> pre_register_cdev(const char *name) op to the LED core, that would allow
> drivers to come up with their implementation thereof. In this particular
> case leds-gpio driver would need to put there gpiod initialization.

I don't know the particulars but if it helps you can at any point
int gpiod_set_consumer_name(struct gpio_desc *desc, const char *name);

For any successfully obtained descriptor, to set the consumer name,
i.e. the text appearing in debugfs and the GPIO character device.

Linus Walleij

  reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-04 11:02 Russell King - ARM Linux admin
2019-12-04 20:52 ` Jacek Anaszewski
2019-12-04 23:45   ` Linus Walleij [this message]
2019-12-05 21:29     ` Jacek Anaszewski

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-LEDs Archive on

Archives are clonable:
	git clone --mirror linux-leds/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-leds linux-leds/ \
	public-inbox-index linux-leds

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone