Lines Matching refs:pin
553 static int bmi160_config_pin(struct regmap *regmap, enum bmi160_int_pin pin,
566 switch (pin) {
581 * Enable the requested pin with the right settings:
599 /* Set the pin to input mode with no latching. */
606 /* Map interrupts to the requested pin. */
611 switch (pin) {
619 dev_err(dev, "Failed to configure %s IRQ pin", pin_name);
638 static int bmi160_get_irq(struct fwnode_handle *fwnode, enum bmi160_int_pin *pin)
645 *pin = BMI160_PIN_INT1;
651 *pin = BMI160_PIN_INT2;
657 enum bmi160_int_pin pin)
681 return bmi160_config_pin(data->regmap, pin, open_drain, irq_mask,
686 enum bmi160_int_pin pin)
700 ret = bmi160_config_device_irq(indio_dev, irq_type, pin);