File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -745,15 +745,15 @@ static int ad7280a_write_thresh(struct iio_dev *indio_dev,
745
745
case IIO_EV_DIR_RISING :
746
746
addr = AD7280A_CELL_OVERVOLTAGE_REG ;
747
747
ret = ad7280_write (st , AD7280A_DEVADDR_MASTER , addr ,
748
- 1 , val );
748
+ 1 , value );
749
749
if (ret )
750
750
break ;
751
751
st -> cell_threshhigh = value ;
752
752
break ;
753
753
case IIO_EV_DIR_FALLING :
754
754
addr = AD7280A_CELL_UNDERVOLTAGE_REG ;
755
755
ret = ad7280_write (st , AD7280A_DEVADDR_MASTER , addr ,
756
- 1 , val );
756
+ 1 , value );
757
757
if (ret )
758
758
break ;
759
759
st -> cell_threshlow = value ;
@@ -770,18 +770,18 @@ static int ad7280a_write_thresh(struct iio_dev *indio_dev,
770
770
case IIO_EV_DIR_RISING :
771
771
addr = AD7280A_AUX_ADC_OVERVOLTAGE_REG ;
772
772
ret = ad7280_write (st , AD7280A_DEVADDR_MASTER , addr ,
773
- 1 , val );
773
+ 1 , value );
774
774
if (ret )
775
775
break ;
776
- st -> aux_threshhigh = val ;
776
+ st -> aux_threshhigh = value ;
777
777
break ;
778
778
case IIO_EV_DIR_FALLING :
779
779
addr = AD7280A_AUX_ADC_UNDERVOLTAGE_REG ;
780
780
ret = ad7280_write (st , AD7280A_DEVADDR_MASTER , addr ,
781
- 1 , val );
781
+ 1 , value );
782
782
if (ret )
783
783
break ;
784
- st -> aux_threshlow = val ;
784
+ st -> aux_threshlow = value ;
785
785
break ;
786
786
default :
787
787
ret = - EINVAL ;
You can’t perform that action at this time.
0 commit comments