File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Documentation/devicetree/bindings/iio/dac Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ properties:
33
33
34
34
adi,range-microamp :
35
35
description : Current output range <min, max> in microamps
36
- - items :
37
- - const : 0
38
- - const : 24000
36
+ items :
37
+ - const : 0
38
+ - const : 24000
39
39
40
40
adi,slew-time-us :
41
41
description : Output digital slew control time in microseconds
52
52
- oneOf :
53
53
- required : ['adi,range-microamp']
54
54
- required : ['adi,range-microvolt']
55
-
55
+
56
56
unevaluatedProperties : false
57
57
58
58
examples :
Original file line number Diff line number Diff line change 6
6
*
7
7
* TODO: Currently CRC is not supported in this driver
8
8
*/
9
+ #include <linux/bitfield.h>
9
10
#include <linux/bsearch.h>
10
11
#include <linux/delay.h>
11
12
#include <linux/gpio/consumer.h>
@@ -584,16 +585,16 @@ static int ad5413_parse_dt(struct ad5413_state *st)
584
585
} else {
585
586
/* current path */
586
587
ret = device_property_read_u32_array (& st -> spi -> dev ,
587
- "adi,range-microamp" ,
588
- tmparray , 2 );
588
+ "adi,range-microamp" ,
589
+ tmparray , 2 );
589
590
if (ret )
590
591
return dev_err_probe (& st -> spi -> dev , ret ,
591
- "Missing \"adi,range-microvolt\" or \"adi,range-microamp\"\n" );
592
+ "Missing \"adi,range-microvolt\" or \"adi,range-microamp\"\n" );
592
593
/* Validate current range: only 0–24000 µA supported */
593
594
if (tmparray [0 ] != 0 || tmparray [1 ] != 24000 )
594
595
return dev_err_probe (& st -> spi -> dev , - EINVAL ,
595
- "Invalid current range %u-%u µA; only 0–24000 supported\n" ,
596
- tmparray [0 ], tmparray [1 ]);
596
+ "Invalid current range %u-%u µA; only 0–24000 supported\n" ,
597
+ tmparray [0 ], tmparray [1 ]);
597
598
ranges = ad5413_current_range ;
598
599
size = ARRAY_SIZE (ad5413_current_range );
599
600
}
You can’t perform that action at this time.
0 commit comments