mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
staging:iio:adis16260: Remove sampling_frequency_available attribute
The values presented here are completely bogus. Also ..._available attributes are supposed to be used for properties that only support discrete sets of values, but we accept continuous values and will round to the next supported frequency. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
e4ddf314e2
commit
446e0ee16d
1 changed files with 0 additions and 16 deletions
|
@ -101,18 +101,6 @@
|
||||||
#define ADIS16260_SCAN_TEMP 3
|
#define ADIS16260_SCAN_TEMP 3
|
||||||
#define ADIS16260_SCAN_ANGL 4
|
#define ADIS16260_SCAN_ANGL 4
|
||||||
|
|
||||||
static ssize_t adis16260_read_frequency_available(struct device *dev,
|
|
||||||
struct device_attribute *attr,
|
|
||||||
char *buf)
|
|
||||||
{
|
|
||||||
struct iio_dev *indio_dev = dev_to_iio_dev(dev);
|
|
||||||
struct adis *adis = iio_priv(indio_dev);
|
|
||||||
if (spi_get_device_id(adis->spi)->driver_data)
|
|
||||||
return sprintf(buf, "%s\n", "0.129 ~ 256");
|
|
||||||
else
|
|
||||||
return sprintf(buf, "%s\n", "256 2048");
|
|
||||||
}
|
|
||||||
|
|
||||||
static ssize_t adis16260_read_frequency(struct device *dev,
|
static ssize_t adis16260_read_frequency(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
char *buf)
|
char *buf)
|
||||||
|
@ -190,9 +178,6 @@ static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO,
|
||||||
adis16260_read_frequency,
|
adis16260_read_frequency,
|
||||||
adis16260_write_frequency);
|
adis16260_write_frequency);
|
||||||
|
|
||||||
static IIO_DEVICE_ATTR(sampling_frequency_available,
|
|
||||||
S_IRUGO, adis16260_read_frequency_available, NULL, 0);
|
|
||||||
|
|
||||||
static const struct iio_chan_spec adis16260_channels[] = {
|
static const struct iio_chan_spec adis16260_channels[] = {
|
||||||
ADIS_GYRO_CHAN(X, ADIS16260_GYRO_OUT, ADIS16260_SCAN_GYRO,
|
ADIS_GYRO_CHAN(X, ADIS16260_GYRO_OUT, ADIS16260_SCAN_GYRO,
|
||||||
BIT(IIO_CHAN_INFO_CALIBBIAS) |
|
BIT(IIO_CHAN_INFO_CALIBBIAS) |
|
||||||
|
@ -306,7 +291,6 @@ static int adis16260_write_raw(struct iio_dev *indio_dev,
|
||||||
|
|
||||||
static struct attribute *adis16260_attributes[] = {
|
static struct attribute *adis16260_attributes[] = {
|
||||||
&iio_dev_attr_sampling_frequency.dev_attr.attr,
|
&iio_dev_attr_sampling_frequency.dev_attr.attr,
|
||||||
&iio_dev_attr_sampling_frequency_available.dev_attr.attr,
|
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue