Lines Matching refs:adp5589_write
383 static int adp5589_write(struct i2c_client *client, u8 reg, u8 val) in adp5589_write() function
421 adp5589_write(kpad->client, kpad->var->reg(ADP5589_GPO_DATA_OUT_A) + in adp5589_gpio_set_value()
434 return adp5589_write(kpad->client, in adp5589_gpio_direction_input()
456 error = adp5589_write(kpad->client, in adp5589_gpio_direction_output()
462 error = adp5589_write(kpad->client, in adp5589_gpio_direction_output()
605 adp5589_write(client, ADP5589_5_INT_STATUS, status); /* Status is W1C */ in adp5589_irq()
633 ret = adp5589_write(client, reg(ADP5589_PIN_CONFIG_A), in adp5589_setup()
635 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_B), in adp5589_setup()
640 ret |= adp5589_write(client, ADP5589_PIN_CONFIG_C, in adp5589_setup()
644 ret |= adp5589_write(client, ADP5589_UNLOCK1, in adp5589_setup()
646 ret |= adp5589_write(client, ADP5589_UNLOCK2, in adp5589_setup()
648 ret |= adp5589_write(client, ADP5589_UNLOCK_TIMERS, in adp5589_setup()
650 ret |= adp5589_write(client, ADP5589_LOCK_CFG, LOCK_EN); in adp5589_setup()
671 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_A), in adp5589_setup()
673 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_B), in adp5589_setup()
676 ret |= adp5589_write(client, in adp5589_setup()
699 ret |= adp5589_write(client, reg(ADP5585_RPULL_CONFIG_A) in adp5589_setup()
719 ret |= adp5589_write(client, in adp5589_setup()
727 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_A), in adp5589_setup()
730 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_B), in adp5589_setup()
733 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_C), in adp5589_setup()
740 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_A), in adp5589_setup()
743 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_B), in adp5589_setup()
750 ret |= adp5589_write(client, reg(ADP5589_RESET_CFG), in adp5589_setup()
752 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_D), in adp5589_setup()
756 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_A), in adp5589_setup()
759 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_B), in adp5589_setup()
764 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_C), in adp5589_setup()
767 ret |= adp5589_write(client, reg(ADP5589_POLL_PTIME_CFG), in adp5589_setup()
769 ret |= adp5589_write(client, ADP5589_5_INT_STATUS, in adp5589_setup()
775 ret |= adp5589_write(client, reg(ADP5589_GENERAL_CFG), in adp5589_setup()
777 ret |= adp5589_write(client, reg(ADP5589_INT_EN), in adp5589_setup()
945 adp5589_write(kpad->client, kpad->var->reg(ADP5589_GENERAL_CFG), 0); in adp5589_clear_config()