summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/adc
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2009-08-18 18:06:23 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:24 -0700
commite435bc191f6a224192b548bed8cb1893b64e7df2 (patch)
tree76bfb1ba4fe6404168cb9144acc3dba0b170dbb9 /drivers/staging/iio/adc
parent66533b488e17df35f5cd3bc2ebdafdf1444eb187 (diff)
downloadop-kernel-dev-e435bc191f6a224192b548bed8cb1893b64e7df2.zip
op-kernel-dev-e435bc191f6a224192b548bed8cb1893b64e7df2.tar.gz
Staging: IIO: kxsd9 accelerometer minimal support
This provides only very minimal support for this device. Note that an alternate driver has been posted to the input mailing list. When the original LMKL discussion that led to the descision to develop IIO occured, the question on whether the differing requirements of IIO and input drivers made it a good idea to have unified drivers was left as an open question. It still is. All opinions on this question welcome. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/adc')
-rw-r--r--drivers/staging/iio/adc/adc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/staging/iio/adc/adc.h b/drivers/staging/iio/adc/adc.h
new file mode 100644
index 0000000..d925b2c
--- /dev/null
+++ b/drivers/staging/iio/adc/adc.h
@@ -0,0 +1,13 @@
+/*
+ * adc.h - sysfs attributes associated with ADCs
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ *
+ * Copyright (c) 2008 Jonathan Cameron <jic23@cam.ac.uk>
+ *
+ */
+
+#define IIO_DEV_ATTR_ADC(_num, _show, _addr) \
+ IIO_DEVICE_ATTR(adc_##_num, S_IRUGO, _show, NULL, _addr)
OpenPOWER on IntegriCloud