RFC: more consitent DAC sysfs attributes naming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jonathan,

I wonder if it would make more sense to use this...

drivers/staging/iio/dac/dac.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/iio/dac/dac.h b/drivers/staging/iio/dac/dac.h
index 55005ee..62620ed 100644
--- a/drivers/staging/iio/dac/dac.h
+++ b/drivers/staging/iio/dac/dac.h
@@ -2,5 +2,9 @@
  * dac.h - sysfs attributes associated with DACs
  */

+/* Deprecated */
 #define IIO_DEV_ATTR_DAC(_num, _store, _addr)                  \
        IIO_DEVICE_ATTR(dac_##_num, S_IWUSR, NULL, _store, _addr)
+
+#define IIO_DEV_ATTR_OUT_RAW(_num, _show, _addr)                               \
+       IIO_DEVICE_ATTR(out##_num##_raw, S_IWUSR, _show, NULL, _addr)


Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 4036
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux