staging:iio:meter:ade7758: Use iio channel spec and miscellaneous other changes.
commit8a27a023f8f66a8361c5e3d8160a690f480479ec
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 18 May 2011 13:42:07 +0000 (18 14:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:14:59 +0000 (19 16:14 -0700)
tree127da9e2dbde14b2d457fe7534fb590298b7d295
parent9308bc9af00dc49919bfba58c23ae5225404064d
staging:iio:meter:ade7758: Use iio channel spec and miscellaneous other changes.

Use iio channel spec for the ring buffer channels.
Add/update file comment/license headers.
Use available_scan_masks to prevent that multiple channels are enabled.
Remove wavefrom type attributes. (no handled directly by the scan_elements)
Use SPI_MODE_1.
Move ade7758_initial_setup() before ade7758_probe_trigger() to ensure the
ADE7758 interrupt is disabled when the host interrupt get's enabled.
Add spi_device_id.
Update ring buffer setup.

Some backporting needed to ensure driver builds all the way through core
changes.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/meter/ade7758.h
drivers/staging/iio/meter/ade7758_core.c
drivers/staging/iio/meter/ade7758_ring.c