power: supply: gpio-charger: use helper variable to access device info