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

Input: st1232 - add device tree support

This patch enables DT support for the st1232 driver
which is primarily used on the sh7372 Mackerel board.

[dtor@mail.ru: chnaged to use CONFIG_OF and of_match_ptr]
Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Magnus Damm and committed by
Dmitry Torokhov
e6293d2f 0bf25a45

+9
+9
drivers/input/touchscreen/st1232.c
··· 255 255 }; 256 256 MODULE_DEVICE_TABLE(i2c, st1232_ts_id); 257 257 258 + #ifdef CONFIG_OF 259 + static const struct of_device_id st1232_ts_dt_ids[] __devinitconst = { 260 + { .compatible = "sitronix,st1232", }, 261 + { } 262 + }; 263 + MODULE_DEVICE_TABLE(of, st1232_ts_dt_ids); 264 + #endif 265 + 258 266 static struct i2c_driver st1232_ts_driver = { 259 267 .probe = st1232_ts_probe, 260 268 .remove = __devexit_p(st1232_ts_remove), ··· 270 262 .driver = { 271 263 .name = ST1232_TS_NAME, 272 264 .owner = THIS_MODULE, 265 + .of_match_table = of_match_ptr(st1232_ts_dt_ids), 273 266 #ifdef CONFIG_PM 274 267 .pm = &st1232_ts_pm_ops, 275 268 #endif