leds: trigger: netdev: add basic check for hw control support
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 29 May 2023 16:32:36 +0000 (18:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2023 08:42:08 +0000 (09:42 +0100)
commit6352f25f9fadba59d5df2ba7139495759ccc81d5
treea141bf411e87e765773d4e11b42c75bdedb9046e
parent4fd1b6d47a7a38e81fdc6f8be2ccd4216b3f93db
leds: trigger: netdev: add basic check for hw control support

Add basic check for hw control support. Check if the required API are
defined and check if the defined trigger supported in hw control for the
LED driver match netdev.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/leds/trigger/ledtrig-netdev.c