diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2010-11-22 23:09:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-29 19:04:48 (GMT) |
commit | a9672951a5c4e57e048895d868a2172962ef7ffd (patch) | |
tree | 5175b14582712b8ac9a734c63ebe79af57ba6ebc /drivers/staging/iio/gyro/adis16260_core.c | |
parent | 2b4756aa36909a94596752db341a0a2c8bb8c6ea (diff) | |
download | linux-fsl-qoriq-a9672951a5c4e57e048895d868a2172962ef7ffd.tar.xz |
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>
Diffstat (limited to 'drivers/staging/iio/gyro/adis16260_core.c')
-rw-r--r-- | drivers/staging/iio/gyro/adis16260_core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/iio/gyro/adis16260_core.c b/drivers/staging/iio/gyro/adis16260_core.c index 8190c0f..6f54903 100644 --- a/drivers/staging/iio/gyro/adis16260_core.c +++ b/drivers/staging/iio/gyro/adis16260_core.c @@ -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) |