|
@@ -328,14 +328,16 @@ static IIO_DEV_ATTR_ACTIVE_POWER_GAIN(0644,
|
|
|
ade7759_read_16bit,
|
|
|
ade7759_write_16bit,
|
|
|
ADE7759_APGAIN);
|
|
|
-static IIO_DEV_ATTR_CH_OFF(1, 0644,
|
|
|
- ade7759_read_8bit,
|
|
|
- ade7759_write_8bit,
|
|
|
- ADE7759_CH1OS);
|
|
|
-static IIO_DEV_ATTR_CH_OFF(2, 0644,
|
|
|
- ade7759_read_8bit,
|
|
|
- ade7759_write_8bit,
|
|
|
- ADE7759_CH2OS);
|
|
|
+
|
|
|
+static IIO_DEVICE_ATTR(choff_1, 0644,
|
|
|
+ ade7759_read_8bit,
|
|
|
+ ade7759_write_8bit,
|
|
|
+ ADE7759_CH1OS);
|
|
|
+
|
|
|
+static IIO_DEVICE_ATTR(choff_2, 0644,
|
|
|
+ ade7759_read_8bit,
|
|
|
+ ade7759_write_8bit,
|
|
|
+ ADE7759_CH2OS);
|
|
|
|
|
|
static int ade7759_set_irq(struct device *dev, bool enable)
|
|
|
{
|