Lines Matching refs:label
146 static int stmp3xxx_check_pin(unsigned id, const char *label)
154 __func__, id, label);
159 if (label && pm->pin_labels[pin] &&
160 strcmp(label, pm->pin_labels[pin])) {
163 __func__, id, label, pm->pin_labels[pin]);
171 const char *label)
179 pr_debug("%s: label %s bank %d pin %d strength %d\n", __func__, label,
188 __func__, bank, label);
192 if (stmp3xxx_check_pin(id, label))
202 const char *label)
210 pr_debug("%s: label %s bank %d pin %d voltage %d\n", __func__, label,
216 if (stmp3xxx_check_pin(id, label))
227 void stmp3xxx_pin_pullup(unsigned id, int enable, const char *label)
234 pr_debug("%s: label %s bank %d pin %d enable %d\n", __func__, label,
239 if (stmp3xxx_check_pin(id, label))
250 int stmp3xxx_request_pin(unsigned id, enum pin_fun fun, const char *label)
257 pr_debug("%s: label %s bank %d pin %d fun %d\n", __func__, label,
263 __func__, bank, pin, label, pbank->pin_labels[pin]);
268 pbank->pin_labels[pin] = label;
295 void stmp3xxx_release_pin(unsigned id, const char *label)
301 pr_debug("%s: label %s bank %d pin %d\n", __func__, label, bank, pin);
303 if (stmp3xxx_check_pin(id, label))
310 int stmp3xxx_request_pin_group(struct pin_group *pin_group, const char *label)
321 err = stmp3xxx_request_pin(pin->id, pin->fun, label);
325 stmp3xxx_pin_strength(pin->id, pin->strength, label);
326 stmp3xxx_pin_voltage(pin->id, pin->voltage, label);
327 stmp3xxx_pin_pullup(pin->id, pin->pullup, label);
336 stmp3xxx_release_pin(pin_group->pins[p].id, label);
342 void stmp3xxx_release_pin_group(struct pin_group *pin_group, const char *label)
349 stmp3xxx_release_pin(pin->id, label);