linux-xiaomi-chiron/include/linux/iio
Lars-Peter Clausen 103d9fb907 iio: Add a logarithmic fractional value type
For ADCs or DACs the denominator for fractional types often is a power of two.
In this case we can use a shift operation instead of the rather expensive 64 bit
division. This patch adds a new fractional type which expects the denominator to
be specified as the log2 of the actual denominator. E.g. for ADCs and DACs this
will usually be the number of significant bits.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-10-19 18:46:51 +01:00
..
adc iio:adc: Add common code for ADI Sigma Delta devices 2012-08-27 17:53:12 +01:00
dac iio: add mcp4725 I2C DAC driver 2012-06-12 14:50:51 -07:00
frequency iio: frequency: ADF4350: Fix potential reference div factor overflow. 2012-08-16 20:24:33 +01:00
buffer.h iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
consumer.h iio:inkern: Add function to read the processed value 2012-09-17 21:48:51 +01:00
driver.h IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
events.h iio: iio/events.h typos 2012-06-15 14:39:19 -07:00
iio.h iio:inkern: Add function to read the processed value 2012-09-17 21:48:51 +01:00
kfifo_buf.h iio: Add missing include guards to headers 2012-08-27 18:57:56 +01:00
machine.h iio: Add missing include guards to headers 2012-08-27 18:57:56 +01:00
sysfs.h iio: correct documentation for IIO_CONST_ATTR_SAMP_FREQ_AVAIL, match name of #define 2012-06-18 17:31:42 -07:00
trigger.h iio: whitespace cleanup and removal of semicolon after functions 2012-09-03 20:26:43 +01:00
trigger_consumer.h iio:trigger_consumer.h: Add missing includes and forward declarations 2012-08-27 18:57:59 +01:00
triggered_buffer.h iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
types.h iio: Add a logarithmic fractional value type 2012-10-19 18:46:51 +01:00