Re: Splitting led drivers to subdirectories?

Jacek Anaszewski
2017-09-12T19:12:04Z

Hi,

On 09/12/2017 02:54 PM, Pavel Machek wrote:
> Hi!
>
> Is it time to start splitting drivers into subdirectories?
>
> I'd quite like to see drivers/leds/i2c/ and drivers/leds/flash/ . That
> way it is easier to look at related drivers for inspiration...

These categorization would be inconsistent - i2c is a bus, and
flash is a LED function. Moreover, not all devices are driven through
buses, some of them via gpio, MMIO or even as2cwire like in case of
leds-aat1290. Do we want to split the drivers like that? It would
generate only unnecessary noise IMHO.

We could go for splitting drivers to LED and LED flash class,
but the former is just a subset of the latter, so it would be
also not accurate.

Effectively I propose to apply the "leave well alone" rule here :-)

--
Best regards,
Jacek Anaszewski