提交 a9672951 编写于 作者: J Jonathan Cameron 提交者: Greg Kroah-Hartman

staging: iio: adis16260 add id table support

Signed-off-by: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 2b4756aa
......@@ -635,6 +635,12 @@ static int adis16260_remove(struct spi_device *spi)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册