drivers: power: cpcap: Adapt Quarx's changes to cpcap-orig