staging: iio: fix typos in simple dummy driver
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
07a8329c48
commit
25c38aa3d1
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A few elements needed to fake a bus for this driver
|
* A few elements needed to fake a bus for this driver
|
||||||
* Note instances parmeter controls how many of these
|
* Note instances parameter controls how many of these
|
||||||
* dummy devices are registered.
|
* dummy devices are registered.
|
||||||
*/
|
*/
|
||||||
static unsigned instances = 1;
|
static unsigned instances = 1;
|
||||||
|
@ -178,7 +178,7 @@ static struct iio_chan_spec iio_dummy_channels[] = {
|
||||||
.scan_index = accelx,
|
.scan_index = accelx,
|
||||||
.scan_type = { /* Description of storage in buffer */
|
.scan_type = { /* Description of storage in buffer */
|
||||||
.sign = 's', /* signed */
|
.sign = 's', /* signed */
|
||||||
.realbits = 16, /* 12 bits */
|
.realbits = 16, /* 16 bits */
|
||||||
.storagebits = 16, /* 16 bits used for storage */
|
.storagebits = 16, /* 16 bits used for storage */
|
||||||
.shift = 0, /* zero shift */
|
.shift = 0, /* zero shift */
|
||||||
},
|
},
|
||||||
|
@ -285,9 +285,9 @@ static int iio_dummy_read_raw(struct iio_dev *indio_dev,
|
||||||
* iio_dummy_write_raw() - data write function.
|
* iio_dummy_write_raw() - data write function.
|
||||||
* @indio_dev: the struct iio_dev associated with this device instance
|
* @indio_dev: the struct iio_dev associated with this device instance
|
||||||
* @chan: the channel whose data is to be read
|
* @chan: the channel whose data is to be read
|
||||||
* @val: first element of returned value (typically INT)
|
* @val: first element of value to set (typically INT)
|
||||||
* @val2: second element of returned value (typically MICRO)
|
* @val2: second element of value to set (typically MICRO)
|
||||||
* @mask: what we actually want to read. 0 is the channel, everything else
|
* @mask: what we actually want to write. 0 is the channel, everything else
|
||||||
* is as per the info_mask in iio_chan_spec.
|
* is as per the info_mask in iio_chan_spec.
|
||||||
*
|
*
|
||||||
* Note that all raw writes are assumed IIO_VAL_INT and info mask elements
|
* Note that all raw writes are assumed IIO_VAL_INT and info mask elements
|
||||||
|
|
|
@ -67,8 +67,8 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p)
|
||||||
* software culled hardware scans:
|
* software culled hardware scans:
|
||||||
* occasionally a driver may process the nearest hardware
|
* occasionally a driver may process the nearest hardware
|
||||||
* scan to avoid storing elements that are not desired. This
|
* scan to avoid storing elements that are not desired. This
|
||||||
* is the fidliest option by far.
|
* is the fiddliest option by far.
|
||||||
* Here lets pretend we have random access. And the values are
|
* Here let's pretend we have random access. And the values are
|
||||||
* in the constant table fakedata.
|
* in the constant table fakedata.
|
||||||
*/
|
*/
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
Loading…
Reference in New Issue