mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-09 11:00:52 +00:00
iio:buffer: Stop exporting iio_scan_mask_query
Nothing uses it outside of core code. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
9f4667776c
commit
c2bf8d5f32
@ -358,6 +358,19 @@ static int iio_scan_mask_clear(struct iio_buffer *buffer, int bit)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int iio_scan_mask_query(struct iio_dev *indio_dev,
|
||||||
|
struct iio_buffer *buffer, int bit)
|
||||||
|
{
|
||||||
|
if (bit > indio_dev->masklength)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (!buffer->scan_mask)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
/* Ensure return value is 0 or 1. */
|
||||||
|
return !!test_bit(bit, buffer->scan_mask);
|
||||||
|
};
|
||||||
|
|
||||||
static ssize_t iio_scan_el_store(struct device *dev,
|
static ssize_t iio_scan_el_store(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
@ -1340,20 +1353,6 @@ bool iio_validate_scan_mask_onehot(struct iio_dev *indio_dev,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(iio_validate_scan_mask_onehot);
|
EXPORT_SYMBOL_GPL(iio_validate_scan_mask_onehot);
|
||||||
|
|
||||||
int iio_scan_mask_query(struct iio_dev *indio_dev,
|
|
||||||
struct iio_buffer *buffer, int bit)
|
|
||||||
{
|
|
||||||
if (bit > indio_dev->masklength)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
if (!buffer->scan_mask)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
/* Ensure return value is 0 or 1. */
|
|
||||||
return !!test_bit(bit, buffer->scan_mask);
|
|
||||||
};
|
|
||||||
EXPORT_SYMBOL_GPL(iio_scan_mask_query);
|
|
||||||
|
|
||||||
static const void *iio_demux(struct iio_buffer *buffer,
|
static const void *iio_demux(struct iio_buffer *buffer,
|
||||||
const void *datain)
|
const void *datain)
|
||||||
{
|
{
|
||||||
|
@ -161,9 +161,6 @@ int iio_update_buffers(struct iio_dev *indio_dev,
|
|||||||
**/
|
**/
|
||||||
void iio_buffer_init(struct iio_buffer *buffer);
|
void iio_buffer_init(struct iio_buffer *buffer);
|
||||||
|
|
||||||
int iio_scan_mask_query(struct iio_dev *indio_dev,
|
|
||||||
struct iio_buffer *buffer, int bit);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* iio_push_to_buffers() - push to a registered buffer.
|
* iio_push_to_buffers() - push to a registered buffer.
|
||||||
* @indio_dev: iio_dev structure for device.
|
* @indio_dev: iio_dev structure for device.
|
||||||
|
Loading…
Reference in New Issue
Block a user