Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Keerthy and committed by
Lee Jones
77aa9926 38eceb3a

+8
+8
drivers/input/misc/tps65218-pwrbutton.c
··· 150 150 return 0; 151 151 } 152 152 153 + static const struct platform_device_id tps6521x_pwrbtn_id_table[] = { 154 + { "tps65218-pwrbutton", }, 155 + { "tps65217-pwrbutton", }, 156 + { /* sentinel */ } 157 + }; 158 + MODULE_DEVICE_TABLE(platform, tps6521x_pwrbtn_id_table); 159 + 153 160 static struct platform_driver tps6521x_pb_driver = { 154 161 .probe = tps6521x_pb_probe, 155 162 .driver = { 156 163 .name = "tps6521x_pwrbutton", 157 164 .of_match_table = of_tps6521x_pb_match, 158 165 }, 166 + .id_table = tps6521x_pwrbtn_id_table, 159 167 }; 160 168 module_platform_driver(tps6521x_pb_driver); 161 169