Hi,
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;
}