diff options
Diffstat (limited to 'include/linux/iio/common/st_sensors.h')
| -rw-r--r-- | include/linux/iio/common/st_sensors.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index 96f51f0e0096..d8257ab60bac 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
| @@ -47,6 +47,7 @@ | |||
| 47 | .type = device_type, \ | 47 | .type = device_type, \ |
| 48 | .modified = mod, \ | 48 | .modified = mod, \ |
| 49 | .info_mask_separate = mask, \ | 49 | .info_mask_separate = mask, \ |
| 50 | .info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ), \ | ||
| 50 | .scan_index = index, \ | 51 | .scan_index = index, \ |
| 51 | .channel2 = ch2, \ | 52 | .channel2 = ch2, \ |
| 52 | .address = addr, \ | 53 | .address = addr, \ |
| @@ -59,11 +60,6 @@ | |||
| 59 | }, \ | 60 | }, \ |
| 60 | } | 61 | } |
| 61 | 62 | ||
| 62 | #define ST_SENSOR_DEV_ATTR_SAMP_FREQ() \ | ||
| 63 | IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO, \ | ||
| 64 | st_sensors_sysfs_get_sampling_frequency, \ | ||
| 65 | st_sensors_sysfs_set_sampling_frequency) | ||
| 66 | |||
| 67 | #define ST_SENSORS_DEV_ATTR_SAMP_FREQ_AVAIL() \ | 63 | #define ST_SENSORS_DEV_ATTR_SAMP_FREQ_AVAIL() \ |
| 68 | IIO_DEV_ATTR_SAMP_FREQ_AVAIL( \ | 64 | IIO_DEV_ATTR_SAMP_FREQ_AVAIL( \ |
| 69 | st_sensors_sysfs_sampling_frequency_avail) | 65 | st_sensors_sysfs_sampling_frequency_avail) |
| @@ -285,12 +281,6 @@ int st_sensors_read_info_raw(struct iio_dev *indio_dev, | |||
| 285 | int st_sensors_check_device_support(struct iio_dev *indio_dev, | 281 | int st_sensors_check_device_support(struct iio_dev *indio_dev, |
| 286 | int num_sensors_list, const struct st_sensors *sensors); | 282 | int num_sensors_list, const struct st_sensors *sensors); |
| 287 | 283 | ||
| 288 | ssize_t st_sensors_sysfs_get_sampling_frequency(struct device *dev, | ||
| 289 | struct device_attribute *attr, char *buf); | ||
| 290 | |||
| 291 | ssize_t st_sensors_sysfs_set_sampling_frequency(struct device *dev, | ||
| 292 | struct device_attribute *attr, const char *buf, size_t size); | ||
| 293 | |||
| 294 | ssize_t st_sensors_sysfs_sampling_frequency_avail(struct device *dev, | 284 | ssize_t st_sensors_sysfs_sampling_frequency_avail(struct device *dev, |
| 295 | struct device_attribute *attr, char *buf); | 285 | struct device_attribute *attr, char *buf); |
| 296 | 286 | ||
