sx8654.c (c3a39380a39df3750149a2f4699c1c241a0e6ea2) | sx8654.c (5896756a70b2f1d476d5cf2e174c1675ff0d9e8b) |
---|---|
1/* 2 * Driver for Semtech SX8654 I2C touchscreen controller. 3 * 4 * Copyright (c) 2015 Armadeus Systems 5 * Sébastien Szymanski <sebastien.szymanski@armadeus.com> 6 * 7 * Using code from: 8 * - sx865x.c --- 277 unchanged lines hidden (view full) --- 286 return error; 287 288 return 0; 289} 290 291#ifdef CONFIG_OF 292static const struct of_device_id sx8654_of_match[] = { 293 { .compatible = "semtech,sx8654", }, | 1/* 2 * Driver for Semtech SX8654 I2C touchscreen controller. 3 * 4 * Copyright (c) 2015 Armadeus Systems 5 * Sébastien Szymanski <sebastien.szymanski@armadeus.com> 6 * 7 * Using code from: 8 * - sx865x.c --- 277 unchanged lines hidden (view full) --- 286 return error; 287 288 return 0; 289} 290 291#ifdef CONFIG_OF 292static const struct of_device_id sx8654_of_match[] = { 293 { .compatible = "semtech,sx8654", }, |
294 { .compatible = "semtech,sx8655", }, 295 { .compatible = "semtech,sx8656", }, |
|
294 { }, 295}; 296MODULE_DEVICE_TABLE(of, sx8654_of_match); 297#endif 298 299static const struct i2c_device_id sx8654_id_table[] = { 300 { "semtech_sx8654", 0 }, | 296 { }, 297}; 298MODULE_DEVICE_TABLE(of, sx8654_of_match); 299#endif 300 301static const struct i2c_device_id sx8654_id_table[] = { 302 { "semtech_sx8654", 0 }, |
303 { "semtech_sx8655", 0 }, 304 { "semtech_sx8656", 0 }, |
|
301 { }, 302}; 303MODULE_DEVICE_TABLE(i2c, sx8654_id_table); 304 305static struct i2c_driver sx8654_driver = { 306 .driver = { 307 .name = "sx8654", 308 .of_match_table = of_match_ptr(sx8654_of_match), 309 }, 310 .id_table = sx8654_id_table, 311 .probe = sx8654_probe, 312}; 313module_i2c_driver(sx8654_driver); 314 315MODULE_AUTHOR("Sébastien Szymanski <sebastien.szymanski@armadeus.com>"); 316MODULE_DESCRIPTION("Semtech SX8654 I2C Touchscreen Driver"); 317MODULE_LICENSE("GPL"); | 305 { }, 306}; 307MODULE_DEVICE_TABLE(i2c, sx8654_id_table); 308 309static struct i2c_driver sx8654_driver = { 310 .driver = { 311 .name = "sx8654", 312 .of_match_table = of_match_ptr(sx8654_of_match), 313 }, 314 .id_table = sx8654_id_table, 315 .probe = sx8654_probe, 316}; 317module_i2c_driver(sx8654_driver); 318 319MODULE_AUTHOR("Sébastien Szymanski <sebastien.szymanski@armadeus.com>"); 320MODULE_DESCRIPTION("Semtech SX8654 I2C Touchscreen Driver"); 321MODULE_LICENSE("GPL"); |