]> git.karo-electronics.de Git - mv-sheeva.git/commit
staging: iio: core: Introduce debugfs support, add support for direct register access
authorMichael Hennerich <michael.hennerich@analog.com>
Thu, 1 Mar 2012 09:51:03 +0000 (10:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2012 00:35:39 +0000 (16:35 -0800)
commite553f182d55bd268fea3f106368e2344141c212a
tree0203a2d354d4f61001f4f2a89bdc39d3094c75a2
parent4abf6f8b29e37f492078173a9d4cb808ce327ec0
staging: iio: core: Introduce debugfs support, add support for direct register access

Changes since V1:

Exclude iio debugfs code in case CONFIG_DEBUG_FS isn't enabled.
Introduce helper function iio_get_debugfs_dentry.
Document additions to struct iio_dev

iio_debugfs_read_reg:
Use snprintf.
Use a shorter fixed length.
Introduce len instead of pointer math.

iio_debugfs_write_reg:
Fix return value use PT_ERR.

Changes since V2:

Use debugfs_remove.
Fix whitespace damage.

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>
drivers/staging/iio/iio.h
drivers/staging/iio/industrialio-core.c