summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorPhilip Rakity <prakity@marvell.com>2011-08-29 09:32:04 -0700
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-11-25 23:30:58 +0400
commite7a5f6d55991fb3b3214f435681ee2db96320395 (patch)
tree770037bf6a2d86190b976bfcea3eb67584991d4c /include/linux/mfd
parent72af5a4b9cc9c4527f2967e0283bee632237c26e (diff)
max8925_power: Enable power change notifications
The power core infrastructure allow external power change events to be passed to drivers what are listed in the supplied_to call back field. Enable this feature by allowing the supplied_to field to be passed to the driver. This feature will enable drivers named in the supplied_to field that have a external_power_changed callback to be notified when power was been turned on or off. Signed-off-by: Philip Rakity <prakity@marvell.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/max8925.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/max8925.h b/include/linux/mfd/max8925.h
index 10aeaf8bfb9..b8e6d944908 100644
--- a/include/linux/mfd/max8925.h
+++ b/include/linux/mfd/max8925.h
@@ -222,6 +222,8 @@ struct max8925_power_pdata {
unsigned fast_charge:3; /* charge current */
unsigned no_temp_support:1; /* set if no temperature detect */
unsigned no_insert_detect:1; /* set if no ac insert detect */
+ char **supplied_to;
+ int num_supplicants;
};
/*