smba1002: rewrite of the smba-battery driver