bq2415x_charger: Use power_supply notifier for automode
authorPali Rohár <pali.rohar@gmail.com>
Tue, 19 Nov 2013 10:18:04 +0000 (11:18 +0100)
committerAnton Vorontsov <anton@enomsg.org>
Tue, 24 Dec 2013 01:58:03 +0000 (17:58 -0800)
This patch removing set_mode_hook function from board data and replacing
it with new string variable of notifier power supply device. After this
change it is possible to add DT support because driver does not need
specific board function anymore. Only static data and name of power supply
device is required.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>

No differences found