From: Jonathan Cameron Date: Tue, 21 Sep 2010 13:41:06 +0000 (+0100) Subject: staging: iio: sca3000 add _index attribute registration X-Git-Tag: firefly_0821_release~7613^2~3583^2~3^2~512 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d16061bb6713844358abe87c82a23775ee1dd528;p=firefly-linux-kernel-4.4.55.git staging: iio: sca3000 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c index 003097d9201c..8186d2b2cf4f 100644 --- a/drivers/staging/iio/accel/sca3000_ring.c +++ b/drivers/staging/iio/accel/sca3000_ring.c @@ -206,8 +206,11 @@ static IIO_DEVICE_ATTR(accel_type, static struct attribute *sca3000_scan_el_attrs[] = { &iio_scan_el_accel_x.dev_attr.attr, + &iio_const_attr_accel_x_index.dev_attr.attr, &iio_scan_el_accel_y.dev_attr.attr, + &iio_const_attr_accel_y_index.dev_attr.attr, &iio_scan_el_accel_z.dev_attr.attr, + &iio_const_attr_accel_z_index.dev_attr.attr, &iio_const_attr_accel_type_available.dev_attr.attr, &iio_dev_attr_accel_type.dev_attr.attr, NULL