greybus: power_supply: add callback to handle power supply changes
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 16 Aug 2016 21:31:55 +0000 (22:31 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 18 Aug 2016 15:34:01 +0000 (17:34 +0200)
commitc4582f9d7969019dc67234e96340e21dd3712c46
tree09d283fe16e5dd6af4f406337e3b46d61aaec46e
parent6198f892fafbb3e5875c8a410eb2229a9cbac6ca
greybus: power_supply: add callback to handle power supply changes

When checking for property changes we may need to act upon that change
besides reporting it using power_supply_changed. So, add a function that
will be call if the specific property changed.

As at it, adjust some indentation of the psy_props_changes array.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/power_supply.c