* [PATCH v2] goldfish: Enable ACPI-based enumeration for goldfish battery
@ 2016-03-01 23:46 Alan
2016-03-03 14:22 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Alan @ 2016-03-01 23:46 UTC (permalink / raw)
To: dbaryshkov, dwmw2, sre, linux-pm
From: Yu Ning <yu.ning@intel.com>
Add the ACPI bindings to the goldfish battery driver.
Signed-off-by: Yu Ning <yu.ning@intel.com>
Signed-off-by: Jin Qian <jinqian@android.com>
Signed-off-by: Alan <alan@linux.intel.com>
---
0 files changed
diff --git a/drivers/power/goldfish_battery.c b/drivers/power/goldfish_battery.c
index 7510796..f5c525e 100644
--- a/drivers/power/goldfish_battery.c
+++ b/drivers/power/goldfish_battery.c
@@ -24,6 +24,7 @@
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/io.h>
+#include <linux/acpi.h>
struct goldfish_battery_data {
void __iomem *reg_base;
@@ -233,12 +234,19 @@ static const struct of_device_id goldfish_battery_of_match[] = {
};
MODULE_DEVICE_TABLE(of, goldfish_battery_of_match);
+static const struct acpi_device_id goldfish_battery_acpi_match[] = {
+ { "GFSH0001", 0 },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, goldfish_battery_acpi_match);
+
static struct platform_driver goldfish_battery_device = {
.probe = goldfish_battery_probe,
.remove = goldfish_battery_remove,
.driver = {
.name = "goldfish-battery",
.of_match_table = goldfish_battery_of_match,
+ .acpi_match_table = ACPI_PTR(goldfish_battery_acpi_match),
}
};
module_platform_driver(goldfish_battery_device);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] goldfish: Enable ACPI-based enumeration for goldfish battery
2016-03-01 23:46 [PATCH v2] goldfish: Enable ACPI-based enumeration for goldfish battery Alan
@ 2016-03-03 14:22 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2016-03-03 14:22 UTC (permalink / raw)
To: Alan; +Cc: dbaryshkov, dwmw2, linux-pm
[-- Attachment #1: Type: text/plain, Size: 146 bytes --]
Hi,
On Tue, Mar 01, 2016 at 11:46:10PM +0000, Alan wrote:
> Add the ACPI bindings to the goldfish battery driver.
Thanks, queued.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-03 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 23:46 [PATCH v2] goldfish: Enable ACPI-based enumeration for goldfish battery Alan
2016-03-03 14:22 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).