battery-gb.c: add new functions from Greybus spec document.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>