From: Mårten Lindahl <martenli@xxxxxxxx> This adds support for the Texas Instruments ADC084S021 ADC chip. --- Changes in v4: - Added Rob's Acked-by tag - Use same cacheline for rx and tx buffers - Inlining regulator enable/disable instead of functions - Do kernel endian conversion only for _read_raw access Changes in v3: - Removed unnecessary comment about channel specification - Skipped usage of 'address' in iio_chan_spec config macro - Mask and shift channel readings only for _read_raw function - Enable/disable regulator in _read_raw function - Improved setup of ADC channel readings - Use SPI config of speed_hz and bits_per_word - Use devm_iio_triggered_buffer_setup and devm_iio_device_register - Removed error message for failed devm_iio_device_register - Removed driver _remove callback function Changes in v2: - Split dt-bindings and iio/adc into separate patches - Updated dt-bindings after Robs comments - Removed most #defines to inlines - Corrected channel macro - Removed configuration array with only one item - Updated func adc084s021_adc_conversion to use be16_to_cpu - Added IIO_CHAN_INFO_SCALE to func adc084s021_read_raw - Use iio_device_claim_direct_mode in func adc084s021_read_raw - Removed documentation for standard driver functions - Changed retval to ret everywhere - Removed dynamic alloc for data buffer in trigger handler - Keeping mutex for all iterations in trigger handler - Removed usage of events in this driver - Removed info log in probe - Use spi_message_init_with_transfers for spi message structs - Use preenable and postdisable functions for regulator - Inserted blank line before last return in all functions Mårten Lindahl (2): dt-bindings: iio: adc: add driver for the ti-adc084s021 chip iio: adc: add driver for the ti-adc084s021 chip .../devicetree/bindings/iio/adc/ti-adc084s021.txt | 19 ++ drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-adc084s021.c | 275 +++++++++++++++++++++ 4 files changed, 307 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt create mode 100644 drivers/iio/adc/ti-adc084s021.c -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html