power_supply: bq2415x_charger: Use power_supply_*() API for accessing function attrs