ACPI / battery: use callback for setting up quirks
authorAlexander Mezin <mezin.alexander@gmail.com>
Tue, 3 Jun 2014 19:01:22 +0000 (02:01 +0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Jun 2014 11:55:09 +0000 (13:55 +0200)
commit3f5dc08f5682bba2b9054ee8995e0d84fc14daad
tree1a1377d35f4e2f245e0bbe6efd92bd51fbcaf82c
parent7171511eaec5bf23fb06078f59784a3a0626b38f
ACPI / battery: use callback for setting up quirks

Use callback for setting up quirk instead of checking return code
of dmi_check_system(). This change will allow using bat_dmi_table
for other quirks.

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>
drivers/acpi/battery.c