I want to add can status led(control by gpio) to m_ttcan.There’s a devm_can_led_init function in m_ttcan_linux.c,but I don’t know how to indicate gpio for it.Could you kindlly tell me how to do?
static int register_mttcan_dev(struct net_device *dev)
{
int err;
dev->netdev_ops = &mttcan_netdev_ops;
err = register_candev(dev);
if (!err)
devm_can_led_init(dev);
return err;
}
may I know what’s your purpose to trigger led, would you like to trigger led as torch mode or flash mode?
you can have your implementation to enable led as torch mode.
we do not support flash mode, which trigger led flash just for captured frame.
thanks