Skip to contentSkip to conversation

staging: iio: dac: more consistent DAC sysfs attributes naming

PATCH In review [email protected] 2 participants 2 messages Nov 19, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: dac: more consistent DAC sysfs attributes naming

From: Michael Hennerich <[email protected]>

Align DAC sysfs attributes naming with the convention used by ADC

---
 drivers/staging/iio/dac/dac.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/staging/iio/dac/dac.h +4 -0
index 55005ee..d9384c9 100644
@@ -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, _store, _addr)				\
+	IIO_DEVICE_ATTR(out##_num##_raw, S_IWUSR, NULL, _store, _addr)
Signature · 1 line
1.6.0.2
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On 11/19/10 11:46, [email protected] wrote:

From: Michael Hennerich <[email protected]>

Align DAC sysfs attributes naming with the convention used by ADC

Quoted 18 lines
---
 drivers/staging/iio/dac/dac.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/staging/iio/dac/dac.h +4 -0
index 55005ee..d9384c9 100644
@@ -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, _store, _addr)				\
+	IIO_DEVICE_ATTR(out##_num##_raw, S_IWUSR, NULL, _store, _addr)