leds: trigger: netdev: Convert device attr to macro
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Apr 2023 21:07:42 +0000 (23:07 +0200)
committerLee Jones <lee@kernel.org>
Thu, 25 May 2023 11:07:37 +0000 (12:07 +0100)
commit164b67d53476a9d114be85c885bd31f783835be4
tree90e591a32f3292287db297df2e96f134aa23388c
parentbdec9cb83936e0ac4cb87fed5b49fad0175f7dec
leds: trigger: netdev: Convert device attr to macro

Convert link tx and rx device attr to a common macro to reduce common
code and in preparation for additional attr.

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-5-ansuelsmth@gmail.com
drivers/leds/trigger/ledtrig-netdev.c