Add battery-class driver

Signed-off-by: Michael Buesch <m@bues.ch>