Hi! > This is only a proof of concept driver that makes an LED blink on UART > activity. Feedback about the concept is very welcome. > +static void ledtrig_uart_halt(struct ledtrig_uart_data *trigger_data) > +{ > + cancel_delayed_work_sync(&trigger_data->dwork); > +} > + > +static void ledtrig_uart_restart(struct ledtrig_uart_data *trigger_data) > +{ > + pr_info("%s:%d: devname = %s\n", __func__, __LINE__, trigger_data->devname); > + if (!trigger_data->devname) > + return; > + > + schedule_delayed_work(&trigger_data->dwork, 0); > +} You should not need to do delayed work by hand. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature