On Sun, 25 Jun 2017 21:31:31 +0530 Gaurav Pathak <gauravpathak129@xxxxxxxxx> wrote: > Signed-off-by: Gaurav Pathak <gauravpathak129@xxxxxxxxx> Userspace ABI just broke. Please, look at what the macro is doign with that string, it's a lot more than a simple name for the resulting data structures. Jonathan > --- > drivers/staging/iio/light/tsl2x7x.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c > index 1467199..7d02a8b 100644 > --- a/drivers/staging/iio/light/tsl2x7x.c > +++ b/drivers/staging/iio/light/tsl2x7x.c > @@ -1007,7 +1007,7 @@ static ssize_t in_illuminance0_integration_time_store(struct device *dev, > return IIO_VAL_INT_PLUS_MICRO; > } > > -static IIO_CONST_ATTR(in_illuminance0_integration_time_available, > +static IIO_CONST_ATTR(in_illuminance0_integration_time_avail, > ".00272 - .696"); > > static ssize_t in_illuminance0_target_input_show(struct device *dev, > @@ -1583,7 +1583,7 @@ static struct attribute *tsl2x7x_ALS_device_attrs[] = { > &dev_attr_power_state.attr, > &dev_attr_in_illuminance0_calibscale_available.attr, > &dev_attr_in_illuminance0_integration_time.attr, > - &iio_const_attr_in_illuminance0_integration_time_available.dev_attr.attr, > + &iio_const_attr_in_illuminance0_integration_time_avail.dev_attr.attr, > &dev_attr_in_illuminance0_target_input.attr, > &dev_attr_in_illuminance0_calibrate.attr, > &dev_attr_in_illuminance0_lux_table.attr, > @@ -1600,7 +1600,7 @@ static struct attribute *tsl2x7x_ALSPRX_device_attrs[] = { > &dev_attr_power_state.attr, > &dev_attr_in_illuminance0_calibscale_available.attr, > &dev_attr_in_illuminance0_integration_time.attr, > - &iio_const_attr_in_illuminance0_integration_time_available.dev_attr.attr, > + &iio_const_attr_in_illuminance0_integration_time_avail.dev_attr.attr, > &dev_attr_in_illuminance0_target_input.attr, > &dev_attr_in_illuminance0_calibrate.attr, > &dev_attr_in_illuminance0_lux_table.attr, > @@ -1619,7 +1619,7 @@ static struct attribute *tsl2x7x_ALSPRX2_device_attrs[] = { > &dev_attr_power_state.attr, > &dev_attr_in_illuminance0_calibscale_available.attr, > &dev_attr_in_illuminance0_integration_time.attr, > - &iio_const_attr_in_illuminance0_integration_time_available.dev_attr.attr, > + &iio_const_attr_in_illuminance0_integration_time_avail.dev_attr.attr, > &dev_attr_in_illuminance0_target_input.attr, > &dev_attr_in_illuminance0_calibrate.attr, > &dev_attr_in_illuminance0_lux_table.attr, -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html