File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1188,7 +1188,7 @@ static int ad7173_fw_parse_channel_config(struct iio_dev *indio_dev)
1188
1188
struct device * dev = indio_dev -> dev .parent ;
1189
1189
struct iio_chan_spec * chan_arr , * chan ;
1190
1190
unsigned int ain [AD7173_NO_AINS_PER_CHANNEL ], chan_index = 0 ;
1191
- int ref_sel , ret , is_current_chan , num_channels ;
1191
+ int ref_sel , ret , num_channels ;
1192
1192
1193
1193
num_channels = device_get_child_node_count (dev );
1194
1194
@@ -1234,6 +1234,8 @@ static int ad7173_fw_parse_channel_config(struct iio_dev *indio_dev)
1234
1234
}
1235
1235
1236
1236
device_for_each_child_node_scoped (dev , child ) {
1237
+ bool is_current_chan = false;
1238
+
1237
1239
chan = & chan_arr [chan_index ];
1238
1240
* chan = ad7173_channel_template ;
1239
1241
chan_st_priv = & chans_st_arr [chan_index ];
You can’t perform that action at this time.
0 commit comments