diff options
Diffstat (limited to 'drivers/staging/iio/gyro/adis16130_core.c')
-rw-r--r-- | drivers/staging/iio/gyro/adis16130_core.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/staging/iio/gyro/adis16130_core.c b/drivers/staging/iio/gyro/adis16130_core.c index c2f338c7faf0..14d5a34ab441 100644 --- a/drivers/staging/iio/gyro/adis16130_core.c +++ b/drivers/staging/iio/gyro/adis16130_core.c @@ -175,6 +175,11 @@ static const struct attribute_group adis16130_attribute_group = { .attrs = adis16130_attributes, }; +static const struct iio_info adis16130_info = { + .attrs = &adis16130_attribute_group, + .driver_module = THIS_MODULE, +}; + static int __devinit adis16130_probe(struct spi_device *spi) { int ret; @@ -196,9 +201,8 @@ static int __devinit adis16130_probe(struct spi_device *spi) st->indio_dev->name = spi->dev.driver->name; st->indio_dev->dev.parent = &spi->dev; - st->indio_dev->attrs = &adis16130_attribute_group; + st->indio_dev->info = &adis16130_info; st->indio_dev->dev_data = (void *)(st); - st->indio_dev->driver_module = THIS_MODULE; st->indio_dev->modes = INDIO_DIRECT_MODE; st->mode = 1; |