Lines Matching defs:bias
210 int bias = -1;
213 * bias-pull-{up,down,pin-default} properties have an optional
217 * XXXJRT How to represent bias-pull-pin-default?
220 if (of_hasprop(phandle, "bias-disable")) {
221 bias = 0;
222 } else if (of_hasprop(phandle, "bias-pull-up")) {
223 bias_prop = "bias-pull-up";
224 bias = GPIO_PIN_PULLUP;
225 } else if (of_hasprop(phandle, "bias-pull-down")) {
226 bias_prop = "bias-pull-down";
227 bias = GPIO_PIN_PULLDOWN;
240 return bias;