summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorKeerthy2016-09-19 09:39:04 +0200
committerLee Jones2016-10-26 11:30:20 +0200
commit77aa99265a8dda5b497ff4ebbcafafa7fa07e87f (patch)
treebcaec56219943a0fda56f5428caf030049356600 /drivers/input/misc
parentDocumentation: regulator: tps65218: Update examples (diff)
downloadkernel-qcow2-linux-77aa99265a8dda5b497ff4ebbcafafa7fa07e87f.tar.gz
kernel-qcow2-linux-77aa99265a8dda5b497ff4ebbcafafa7fa07e87f.tar.xz
kernel-qcow2-linux-77aa99265a8dda5b497ff4ebbcafafa7fa07e87f.zip
input: tps65218-pwrbutton: Add platform_device_id table
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>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/tps65218-pwrbutton.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/misc/tps65218-pwrbutton.c b/drivers/input/misc/tps65218-pwrbutton.c
index 3273217ce80c..cc74a41bdb0d 100644
--- 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);