Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1432956
| From | Keerthy <j-keerthy@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v6 3/6] input: tps65218-pwrbutton: Add platform_device_id table |
| Date | 2016-06-28 14:40 +0200 |
| Message-ID | <rP0t4-730-29@gated-at.bofh.it> (permalink) |
| References | <rP0t4-730-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
Changes in v4:
* Added the missing ';' for struct platform_device_id.
drivers/input/misc/tps65218-pwrbutton.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/input/misc/tps65218-pwrbutton.c b/drivers/input/misc/tps65218-pwrbutton.c
index 2bba8de..33d141a 100644
--- a/drivers/input/misc/tps65218-pwrbutton.c
+++ b/drivers/input/misc/tps65218-pwrbutton.c
@@ -113,12 +113,19 @@ static const struct of_device_id of_tps65218_pwr_match[] = {
};
MODULE_DEVICE_TABLE(of, of_tps65218_pwr_match);
+static const struct platform_device_id tps65218_pwrbtn_id_table[] = {
+ { "tps65218-pwrbutton", },
+ { /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(platform, tps65218_pwrbtn_id_table);
+
static struct platform_driver tps65218_pwron_driver = {
.probe = tps65218_pwron_probe,
.driver = {
.name = "tps65218_pwrbutton",
.of_match_table = of_tps65218_pwr_match,
},
+ .id_table = tps65218_pwrbtn_id_table,
};
module_platform_driver(tps65218_pwron_driver);
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 0/6] mfd: tps65218: Clean ups Keerthy <j-keerthy@ti.com> - 2016-06-28 14:40 +0200
[PATCH v6 5/6] mfd: tps65218: Use mfd_add_devices instead of of_platform_populate Keerthy <j-keerthy@ti.com> - 2016-06-28 14:40 +0200
[PATCH v6 3/6] input: tps65218-pwrbutton: Add platform_device_id table Keerthy <j-keerthy@ti.com> - 2016-06-28 14:40 +0200
Re: [PATCH v6 3/6] input: tps65218-pwrbutton: Add platform_device_id table Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-06-28 19:10 +0200
[PATCH v6 6/6] regulator: tps65218: Remove all the compatibles Keerthy <j-keerthy@ti.com> - 2016-06-28 14:40 +0200
[PATCH v6 2/6] Documentation: regulator: tps65218: Update examples Keerthy <j-keerthy@ti.com> - 2016-06-28 14:40 +0200
[PATCH v6 1/6] mfd: tps65218: Remove redundant read wrapper Keerthy <j-keerthy@ti.com> - 2016-06-28 14:40 +0200
csiph-web