leds: trigger: netdev: Rename add namespace to netdev trigger enum modes
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Apr 2023 21:07:41 +0000 (23:07 +0200)
committerLee Jones <lee@kernel.org>
Thu, 25 May 2023 11:07:36 +0000 (12:07 +0100)
commitbdec9cb83936e0ac4cb87fed5b49fad0175f7dec
tree2740bf0e011a27ba20f0f1333f9933329107eff8
parente2f24cb1b5daf9a4f6f3ba574c1fa74aab9807a4
leds: trigger: netdev: Rename add namespace to netdev trigger enum modes

Rename NETDEV trigger enum modes to a more symbolic name and add a
namespace to them.

Also add __TRIGGER_NETDEV_MAX to identify the max modes of the netdev
trigger.

This is a cleanup to drop the define and no behaviour change are
intended.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230419210743.3594-4-ansuelsmth@gmail.com
drivers/leds/trigger/ledtrig-netdev.c