Dear Martin Liška, [...] > +static int acpi_als_write_raw(struct iio_dev *indio_dev, > + struct iio_chan_spec const *chan, int val, int val2, long mask) > +{ > + return 0; > +} Simply set write_raw = NULL below (aka. don't put it into the structure at all). > +static const struct iio_chan_spec acpi_als_channels[] = { > + { > + .type = IIO_LIGHT, > + .indexed = 1, > + .channel = 1, > + .scan_type.sign = 'u', > + .scan_type.realbits = 10, > + .scan_type.storagebits = 16, > + .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT | > + IIO_CHAN_INFO_SCALE_SEPARATE_BIT, > + }, > +}; > + > +static const struct iio_info acpi_als_info = { > + .driver_module = THIS_MODULE, > + .read_raw = &acpi_als_read_raw, > + .write_raw = &acpi_als_write_raw, > +}; [...] Best regards, Marek Vasut -- 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