diff options
| author | Amit Jain <ajain@motorola.com> | 2014-10-04 20:13:37 +0000 | 
|---|---|---|
| committer | Amit Jain <ajain@motorola.com> | 2014-10-04 20:13:37 +0000 | 
| commit | b431796a84b21383566d0d1b1728da4fe265a357 (patch) | |
| tree | 2b2ee8a290f4f89da8ca48aefba8e6b4abe47f43 /drivers/misc/charger_notify.c | |
| parent | 58efe519a5477c70a184cdf376520122127f69f0 (diff) | |
| download | olio-linux-3.10-b431796a84b21383566d0d1b1728da4fe265a357.tar.xz olio-linux-3.10-b431796a84b21383566d0d1b1728da4fe265a357.zip  | |
Revert "IKXCLOCK-4061: power key behavior change"
This reverts commit 58efe519a5477c70a184cdf376520122127f69f0.
Change-Id: I8a80fcb5d7386ac8c74da99aa649ad549d64d3a1
Diffstat (limited to 'drivers/misc/charger_notify.c')
| -rw-r--r-- | drivers/misc/charger_notify.c | 50 | 
1 files changed, 0 insertions, 50 deletions
diff --git a/drivers/misc/charger_notify.c b/drivers/misc/charger_notify.c deleted file mode 100644 index 79f9e726f87..00000000000 --- a/drivers/misc/charger_notify.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2014 Motorola Mobility LLC. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program.  If not, see <http://www.gnu.org/licenses/>. - */ - -#include <linux/notifier.h> -#include <linux/charger_notify.h> - -static BLOCKING_NOTIFIER_HEAD(charger_notifier_list); - -/** - * charger_register_notify - register a notifier callback for triggering display init - * @nb: pointer to the notifier block for the callback events. - * - */ -void charger_register_notify(struct notifier_block *nb) -{ -	blocking_notifier_chain_register(&charger_notifier_list, nb); -} -EXPORT_SYMBOL_GPL(charger_register_notify); - -/** - * charger_unregister_notify - unregister a notifier callback - * @nb: pointer to the notifier block for the callback events. - * - * charger_register_notify() must have been previously called - * for this function to work properly. - */ -void charger_unregister_notify(struct notifier_block *nb) -{ -	blocking_notifier_chain_unregister(&charger_notifier_list, nb); -} -EXPORT_SYMBOL_GPL(charger_unregister_notify); - -void charger_notify_subscriber(unsigned long event) -{ -	blocking_notifier_call_chain(&charger_notifier_list, event, NULL); -} -EXPORT_SYMBOL_GPL(charger_notify_subscriber);  |