@@ -145,6 +145,7 @@ struct ad7173_device_info {
145
145
unsigned int id ;
146
146
char * name ;
147
147
bool has_temp ;
148
+ bool has_input_buf ;
148
149
bool has_int_ref ;
149
150
bool has_ref2 ;
150
151
u8 num_gpios ;
@@ -212,6 +213,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
212
213
.num_configs = 4 ,
213
214
.num_gpios = 2 ,
214
215
.has_temp = true,
216
+ .has_input_buf = true,
215
217
.has_int_ref = true,
216
218
.clock = 2 * HZ_PER_MHZ ,
217
219
.sinc5_data_rates = ad7173_sinc5_data_rates ,
@@ -224,6 +226,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
224
226
.num_configs = 8 ,
225
227
.num_gpios = 4 ,
226
228
.has_temp = false,
229
+ .has_input_buf = true,
227
230
.has_ref2 = true,
228
231
.clock = 2 * HZ_PER_MHZ ,
229
232
.sinc5_data_rates = ad7173_sinc5_data_rates ,
@@ -237,6 +240,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
237
240
.num_configs = 8 ,
238
241
.num_gpios = 4 ,
239
242
.has_temp = true,
243
+ .has_input_buf = true,
240
244
.has_int_ref = true,
241
245
.has_ref2 = true,
242
246
.clock = 2 * HZ_PER_MHZ ,
@@ -251,6 +255,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
251
255
.num_configs = 4 ,
252
256
.num_gpios = 2 ,
253
257
.has_temp = true,
258
+ .has_input_buf = true,
254
259
.has_int_ref = true,
255
260
.clock = 16 * HZ_PER_MHZ ,
256
261
.sinc5_data_rates = ad7175_sinc5_data_rates ,
@@ -263,6 +268,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
263
268
.num_configs = 8 ,
264
269
.num_gpios = 4 ,
265
270
.has_temp = true,
271
+ .has_input_buf = true,
266
272
.has_int_ref = true,
267
273
.has_ref2 = true,
268
274
.clock = 16 * HZ_PER_MHZ ,
@@ -277,6 +283,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
277
283
.num_configs = 4 ,
278
284
.num_gpios = 2 ,
279
285
.has_temp = false,
286
+ .has_input_buf = false,
280
287
.has_int_ref = true,
281
288
.clock = 16 * HZ_PER_MHZ ,
282
289
.sinc5_data_rates = ad7175_sinc5_data_rates ,
@@ -289,6 +296,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
289
296
.num_configs = 4 ,
290
297
.num_gpios = 2 ,
291
298
.has_temp = true,
299
+ .has_input_buf = true,
292
300
.has_int_ref = true,
293
301
.clock = 16 * HZ_PER_MHZ ,
294
302
.odr_start_value = AD7177_ODR_START_VALUE ,
@@ -932,7 +940,7 @@ static int ad7173_fw_parse_channel_config(struct iio_dev *indio_dev)
932
940
AD7173_CH_ADDRESS (chan_arr [chan_index ].channel ,
933
941
chan_arr [chan_index ].channel2 );
934
942
chan_st_priv -> cfg .bipolar = false;
935
- chan_st_priv -> cfg .input_buf = true ;
943
+ chan_st_priv -> cfg .input_buf = st -> info -> has_input_buf ;
936
944
chan_st_priv -> cfg .ref_sel = AD7173_SETUP_REF_SEL_INT_REF ;
937
945
st -> adc_mode |= AD7173_ADC_MODE_REF_EN ;
938
946
@@ -989,7 +997,7 @@ static int ad7173_fw_parse_channel_config(struct iio_dev *indio_dev)
989
997
990
998
chan_st_priv -> ain = AD7173_CH_ADDRESS (ain [0 ], ain [1 ]);
991
999
chan_st_priv -> chan_reg = chan_index ;
992
- chan_st_priv -> cfg .input_buf = true ;
1000
+ chan_st_priv -> cfg .input_buf = st -> info -> has_input_buf ;
993
1001
chan_st_priv -> cfg .odr = 0 ;
994
1002
995
1003
chan_st_priv -> cfg .bipolar = fwnode_property_read_bool (child , "bipolar" );
0 commit comments