diff options
author | Alexander Mezin | 2014-03-11 18:58:47 +0100 |
---|---|---|
committer | Rafael J. Wysocki | 2014-03-19 01:57:46 +0100 |
commit | 411e0f77bdf79cdb80b61ab78acc6513c9ff8f97 (patch) | |
tree | 02a7d02f6bb55fea5cc4d3ca3a45e9833b7fbb09 /drivers/acpi/battery.c | |
parent | ACPI / battery: move some ACPI_BATTERY_* definitions to header (diff) | |
download | kernel-qcow2-linux-411e0f77bdf79cdb80b61ab78acc6513c9ff8f97.tar.gz kernel-qcow2-linux-411e0f77bdf79cdb80b61ab78acc6513c9ff8f97.tar.xz kernel-qcow2-linux-411e0f77bdf79cdb80b61ab78acc6513c9ff8f97.zip |
ACPI / battery: call ACPI notifier chain in acpi_battery_notify
Allow other drivers to subscribe to battery status notifications.
Just like AC driver does.
Signed-off-by: Alexander Mezin <mezin.alexander@gmail.com>
Acked-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index bfec70f12faa..9a2c63b20050 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -734,6 +734,7 @@ static void acpi_battery_notify(struct acpi_device *device, u32 event) acpi_bus_generate_netlink_event(device->pnp.device_class, dev_name(&device->dev), event, acpi_battery_present(battery)); + acpi_notifier_call_chain(device, event, acpi_battery_present(battery)); /* acpi_battery_update could remove power_supply object */ if (old && battery->bat.dev) power_supply_changed(&battery->bat); |