Reworked open_can_dev function and can_handler struct