Home
last modified time | relevance | path

Searched refs:pga_gpios (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iio/adc/
H A Dad7191.c57 struct gpio_descs *pga_gpios; member
208 st->pga_gpios = devm_gpiod_get_array(dev, "pga", GPIOD_OUT_LOW); in ad7191_config_setup()
209 if (IS_ERR(st->pga_gpios)) in ad7191_config_setup()
210 return dev_err_probe(dev, PTR_ERR(st->pga_gpios), in ad7191_config_setup()
213 if (st->pga_gpios->ndescs != 2) in ad7191_config_setup()
229 st->pga_gpios = NULL; in ad7191_config_setup()
324 return gpiod_multi_set_value_cansleep(st->pga_gpios, bitmap); in ad7191_set_gain()
346 if (!st->pga_gpios) in __ad7191_write_raw()
H A Dad7768-1.c304 struct gpio_descs *pga_gpios; member
691 st->pga_gpios = devm_gpiod_get_array(dev, "pga", GPIOD_OUT_LOW); in ad7768_setup_pga()
692 if (IS_ERR(st->pga_gpios)) in ad7768_setup_pga()
693 return dev_err_probe(dev, PTR_ERR(st->pga_gpios), in ad7768_setup_pga()
696 if (st->pga_gpios->ndescs != ADAQ7768_PGA_PINS) in ad7768_setup_pga()
731 ret = gpiod_multi_set_value_cansleep(st->pga_gpios, bitmap); in ad7768_set_pga_gain()