projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38eceb3
)
input: tps65218-pwrbutton: Add platform_device_id table
author
Keerthy
<j-keerthy@ti.com>
Mon, 19 Sep 2016 07:39:04 +0000
(13:09 +0530)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 26 Oct 2016 09:30:20 +0000
(10:30 +0100)
platform_device_id table is needed for adding the tps65218-pwrbutton
module to the mfd_cell array.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/input/misc/tps65218-pwrbutton.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/misc/tps65218-pwrbutton.c
b/drivers/input/misc/tps65218-pwrbutton.c
index 3273217ce80c8feecdf7d1b4d4c98c63264901b1..cc74a41bdb0d24d7e5eddd0f1e019ab01cea71c4 100644
(file)
--- a/
drivers/input/misc/tps65218-pwrbutton.c
+++ b/
drivers/input/misc/tps65218-pwrbutton.c
@@
-150,12
+150,20
@@
static int tps6521x_pb_probe(struct platform_device *pdev)
return 0;
}
+static const struct platform_device_id tps6521x_pwrbtn_id_table[] = {
+ { "tps65218-pwrbutton", },
+ { "tps65217-pwrbutton", },
+ { /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(platform, tps6521x_pwrbtn_id_table);
+
static struct platform_driver tps6521x_pb_driver = {
.probe = tps6521x_pb_probe,
.driver = {
.name = "tps6521x_pwrbutton",
.of_match_table = of_tps6521x_pb_match,
},
+ .id_table = tps6521x_pwrbtn_id_table,
};
module_platform_driver(tps6521x_pb_driver);