From: Johannes Berg <johannes@sipsolutions.net>
To: Jenny TC <jenny.tc@intel.com>
Cc: "Pali Rohár" <pali.rohar@gmail.com>,
linux-kernel@vger.kernel.org,
"Anton Vorontsov" <anton@enomsg.org>,
luca@coelho.fi, johannes@sipsolutions.net,
"Johannes Berg" <johannes.berg@intel.com>
Subject: [PATCH 3.14] power_supply: don't export power_supply_notifier
Date: Fri, 21 Feb 2014 14:19:28 +0100 [thread overview]
Message-ID: <1392988768-16693-1-git-send-email-johannes@sipsolutions.net> (raw)
From: Johannes Berg <johannes.berg@intel.com>
Since there are registration/unregistration functions and the
invocation is in the core code, there's no need to export the
notifier chain head, make it static instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
This should probably go into 3.14 so it's not exported in the release.
---
drivers/power/power_supply_core.c | 3 +--
include/linux/power_supply.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c
index 26606641fe44..31a105235c3e 100644
--- a/drivers/power/power_supply_core.c
+++ b/drivers/power/power_supply_core.c
@@ -25,8 +25,7 @@
struct class *power_supply_class;
EXPORT_SYMBOL_GPL(power_supply_class);
-ATOMIC_NOTIFIER_HEAD(power_supply_notifier);
-EXPORT_SYMBOL_GPL(power_supply_notifier);
+static ATOMIC_NOTIFIER_HEAD(power_supply_notifier);
static struct device_type power_supply_dev_type;
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index c9dc4e09854c..80968ee25940 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -240,7 +240,6 @@ struct power_supply_info {
int use_for_apm;
};
-extern struct atomic_notifier_head power_supply_notifier;
extern int power_supply_reg_notifier(struct notifier_block *nb);
extern void power_supply_unreg_notifier(struct notifier_block *nb);
extern struct power_supply *power_supply_get_by_name(const char *name);
--
1.8.5.3
next reply other threads:[~2014-02-21 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-21 13:19 Johannes Berg [this message]
2014-02-25 11:37 ` Jenny Tc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392988768-16693-1-git-send-email-johannes@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=anton@enomsg.org \
--cc=jenny.tc@intel.com \
--cc=johannes.berg@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca@coelho.fi \
--cc=pali.rohar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®