mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ODROID-C5: touchscreen: ads7846: Add spi device ids
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com> Change-Id: I9a9488d02003ae82b3457848072829a60d465278
This commit is contained in:
@@ -1126,6 +1126,16 @@ static int ads7846_setup_spi_msg(struct ads7846 *ts,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct spi_device_id ads7846_spi_ids[] = {
|
||||
{ .name = "tsc2046" },
|
||||
{ .name = "ads7843" },
|
||||
{ .name = "ads7845" },
|
||||
{ .name = "ads7846" },
|
||||
{ .name = "ads7873" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, ads7846_spi_ids);
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id ads7846_dt_ids[] = {
|
||||
{ .compatible = "ti,tsc2046", .data = (void *) 7846 },
|
||||
@@ -1479,6 +1489,7 @@ static struct spi_driver ads7846_driver = {
|
||||
},
|
||||
.probe = ads7846_probe,
|
||||
.remove = ads7846_remove,
|
||||
.id_table = ads7846_spi_ids,
|
||||
};
|
||||
|
||||
module_spi_driver(ads7846_driver);
|
||||
|
||||
Reference in New Issue
Block a user