staging: iio: adis16260 add id table support

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Jonathan Cameron 2010-11-22 23:09:47 +00:00 committed by Greg Kroah-Hartman
parent 2b4756aa36
commit a9672951a5

View File

@ -635,6 +635,12 @@ err_ret:
return ret;
}
static const struct spi_device_id adis16260_id[] = {
{"adis16260", 0},
{"adis16265", 0},
{}
};
static struct spi_driver adis16260_driver = {
.driver = {
.name = "adis16260",
@ -642,6 +648,7 @@ static struct spi_driver adis16260_driver = {
},
.probe = adis16260_probe,
.remove = __devexit_p(adis16260_remove),
.id_table = adis16260_id,
};
static __init int adis16260_init(void)