Skip to content

Commit

Permalink
staging: iio: adis16260 add id table support
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Nov 29, 2010
1 parent 2b4756a commit a967295
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/staging/iio/gyro/adis16260_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,20 @@ 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",
.owner = THIS_MODULE,
},
.probe = adis16260_probe,
.remove = __devexit_p(adis16260_remove),
.id_table = adis16260_id,
};

static __init int adis16260_init(void)
Expand Down

0 comments on commit a967295

Please sign in to comment.