On 22. 05. 19, 12:29, Johan Hovold wrote: >> Sure, but can class_find_device return NULL in this tty case here? > > Yes, it can and will and that's fine, not all ttys have a struct device > (e.g. ptys).
IOW, the code needs a comment, if anything. thanks, -- js suse labs