sensors: occ: Add energy counters
sensors: occ: Add energy counters

Export the accumulated power values as energy sensors. The accumulator
field of power sensors are used for representing energy counters which
can be exported as energy counters in Linux hwmon interface.

Signed-off-by: Shilpasri G Bhat <d5e9f39adad3a1ae2ac6557cc4305369c013b729@linux.vnet.ibm.com>
[stewart: fix old gcc compiler warning]
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

qemu/skiboot,open-power/skiboot,shenki/skiboot,legoater/skiboot,qemu/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,stewart-ibm/skiboot,qemu/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,legoater/skiboot,stewart-ibm/skiboot,open-power/skiboot,qemu/skiboot,stewart-ibm/skiboot,shenki/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot