Lines Matching full:shutdown
27 struct gpio_desc *shutdown; member
77 if (adc->shutdown) { in max1241_read_raw()
78 gpiod_set_value(adc->shutdown, 0); in max1241_read_raw()
81 gpiod_set_value(adc->shutdown, 1); in max1241_read_raw()
180 adc->shutdown = devm_gpiod_get_optional(dev, "shutdown", in max1241_probe()
182 if (IS_ERR(adc->shutdown)) in max1241_probe()
183 return dev_err_probe(dev, PTR_ERR(adc->shutdown), in max1241_probe()
184 "cannot get shutdown gpio\n"); in max1241_probe()
186 if (adc->shutdown) in max1241_probe()
187 dev_dbg(dev, "shutdown pin passed, low-power mode enabled"); in max1241_probe()
189 dev_dbg(dev, "no shutdown pin passed, low-power mode disabled"); in max1241_probe()