tpl: yf driver small code rewrite