Re: [PATCH] Leds: made enum led_brightness into typedef

From: Marek Behun
Date: Wed Mar 03 2021 - 06:53:38 EST


This patch touches only code in drivers/leds and include/linux/leds.h.

Meanwhile enum led_brightness is used in many other parts of kernel as
well, just try
git grep "enum led_brightness"

Also changing it probably to a simple int would be better. But if we
wanted a typedef anyway, it should be called led_brightness_t.

Marek