/curvetun/

main'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-08-16 22:31:55 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-18 17:34:01 +0200
commitc4582f9d7969019dc67234e96340e21dd3712c46 (patch)
tree09d283fe16e5dd6af4f406337e3b46d61aaec46e /drivers/staging
parent6198f892fafbb3e5875c8a410eb2229a9cbac6ca (diff)
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/power_supply.c28
1 files changed, 20 insertions, 8 deletions
diff --git a/drivers/staging/greybus/power_supply.c b/drivers/staging/greybus/power_supply.c