power: supply: core: Don't export power_supply_notifier
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 13 Sep 2023 13:39:00 +0000 (15:39 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 16 Sep 2023 22:43:13 +0000 (00:43 +0200)
power_supply_notifier can be internal, since all users are going
through power_supply_reg_notifier()/power_supply_unreg_notifier().

Link: https://lore.kernel.org/r/20230913133900.591637-1-sebastian.reichel@collabora.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c
include/linux/power_supply.h

index 6e30674be366d45fc7f552d3abbed1b7f731a964..73265001dd4b22b9575f0249702e0da798f9c22a 100644 (file)
@@ -29,8 +29,7 @@
 struct class *power_supply_class;
 EXPORT_SYMBOL_GPL(power_supply_class);
 
-BLOCKING_NOTIFIER_HEAD(power_supply_notifier);
-EXPORT_SYMBOL_GPL(power_supply_notifier);
+static BLOCKING_NOTIFIER_HEAD(power_supply_notifier);
 
 static struct device_type power_supply_dev_type;
 
index 85b86768c0b913a8f603b2612e249bfae745ecfc..c0992a77feeaad8e44c7cdfcf5da9196dab39826 100644 (file)
@@ -767,7 +767,6 @@ struct power_supply_battery_info {
        int bti_resistance_tolerance;
 };
 
-extern struct blocking_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);
 #if IS_ENABLED(CONFIG_POWER_SUPPLY)