diff options
author | Jonathan Cameron <jic23@kernel.org> | 2014-06-22 15:59:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-07-07 04:39:57 -0400 |
commit | 2d239c9e92087d5f4f667371ae350db9f76e3191 (patch) | |
tree | 114c0ce21c9f9258ee82ac849d15b715265f07b0 /include/linux/iio/common | |
parent | a244e7b57f0fb778bd333b10fffbeb362b94ffc3 (diff) |
iio:st sensors: remove custom sampling frequence attribute in favour of core support.
This allows in kernel client drivers to access this
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Denis Ciocca <denis.ciocca@st.com>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Diffstat (limited to 'include/linux/iio/common')
-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 | ||