iio: frequency: New driver for AD9523 SPI Low Jitter Clock Generator
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 29 May 2012 10:41:19 +0000 (12:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 04:19:05 +0000 (21:19 -0700)
commitcd1678f963298a9e777f3edb72d28bc18a3a32c2
treef2539de33d9d0814d62e98021d069850b30980c6
parent9c8ea1b29bc9c9bbd922a652d1b91ddceeb180c6
iio: frequency: New driver for AD9523 SPI Low Jitter Clock Generator

Changes since V1:

Apply Jonathan's review feedback:
Revise device status attribute names, and split documentation into two sections.
Add additional comments, and fix indention issues.
Remove pointless zero initializations.
Revise return value handling.
Simplify some code sections.
Split store_eeprom and sync handling into separate functions.
Use strtobool where applicable.
Document platform data structures using kernel-doc style.

Use dev_to_iio_dev
write_raw IIO_CHAN_INFO_FREQUENCY: Reject values <= 0
Make patch target drivers/iio

Changes since V2:

Use for_each_clear_bit() and __set_bit() where applicable.
Add descriptive comment.
Avoid temporary for struct regulator.
spi_device_id name use ad9523-1, ad9523 will be added later.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-iio-frequency-ad9523 [new file with mode: 0644]
drivers/iio/Kconfig
drivers/iio/Makefile
drivers/iio/frequency/Kconfig [new file with mode: 0644]
drivers/iio/frequency/Makefile [new file with mode: 0644]
drivers/iio/frequency/ad9523.c [new file with mode: 0644]
include/linux/iio/frequency/ad9523.h [new file with mode: 0644]