aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-01-22 12:46:50 -0500
committerLen Brown <len.brown@intel.com>2008-02-05 21:15:50 -0500
commit7c2670bbb53820d0a4fab8d74593eeccd1eef225 (patch)
tree1c6207181694443b0ac0be6b16e446feae527c77 /drivers/power
parent21511abd0a248a3f225d3b611cfabb93124605a7 (diff)
ACPI: battery: add sysfs serial number
egrep serial /proc/acpi/battery/BAT0/info serial number: 32090 serial number can tell you from the imminent danger of beeing set on fire. Signed-off-by: maximilian attems <max@stro.at> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/power_supply_sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index d4824840c5bf..ad2bed0174d6 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -116,6 +116,7 @@ static struct device_attribute power_supply_attrs[] = {
116 /* Properties of type `const char *' */ 116 /* Properties of type `const char *' */
117 POWER_SUPPLY_ATTR(model_name), 117 POWER_SUPPLY_ATTR(model_name),
118 POWER_SUPPLY_ATTR(manufacturer), 118 POWER_SUPPLY_ATTR(manufacturer),
119 POWER_SUPPLY_ATTR(serial_number),
119}; 120};
120 121
121static ssize_t power_supply_show_static_attrs(struct device *dev, 122static ssize_t power_supply_show_static_attrs(struct device *dev,