Re: [PATCH 2/3] leds: add debugfs to device trigger

From: Pavel Machek
Date: Tue Mar 22 2016 - 06:24:48 EST


On Mon 2015-09-28 22:43:04, Maciek Borzecki wrote:
> Add debugfs entries for device activity trigger. Three entries are
> created under /sys/kernel/debug/ledtrig-dev when the driver gets
> loaded. These are:
>
> devices - cat'ing will produce a list of currently registered devices
> in <major>:<minor> format, a line for each device.
>
> register - echo'ing <major>:<minor> will create a trigger for this
> device
>
> trigger - echo'ing <major>:<minor> will fire a trigger for this device

Debugfs? Please don't. This is not debugging infrastructure.