Lines Matching refs:adp5589_write

382 static int adp5589_write(struct i2c_client *client, u8 reg, u8 val)  in adp5589_write()  function
413 adp5589_write(kpad->client, kpad->var->reg(ADP5589_GPO_DATA_OUT_A) + in adp5589_gpio_set_value()
429 ret = adp5589_write(kpad->client, in adp5589_gpio_direction_input()
455 ret = adp5589_write(kpad->client, kpad->var->reg(ADP5589_GPO_DATA_OUT_A) in adp5589_gpio_direction_output()
457 ret |= adp5589_write(kpad->client, in adp5589_gpio_direction_output()
637 adp5589_write(client, ADP5589_5_INT_STATUS, status); /* Status is W1C */ in adp5589_irq()
665 ret = adp5589_write(client, reg(ADP5589_PIN_CONFIG_A), in adp5589_setup()
667 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_B), in adp5589_setup()
672 ret |= adp5589_write(client, ADP5589_PIN_CONFIG_C, in adp5589_setup()
676 ret |= adp5589_write(client, ADP5589_UNLOCK1, in adp5589_setup()
678 ret |= adp5589_write(client, ADP5589_UNLOCK2, in adp5589_setup()
680 ret |= adp5589_write(client, ADP5589_UNLOCK_TIMERS, in adp5589_setup()
682 ret |= adp5589_write(client, ADP5589_LOCK_CFG, LOCK_EN); in adp5589_setup()
703 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_A), in adp5589_setup()
705 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_B), in adp5589_setup()
708 ret |= adp5589_write(client, in adp5589_setup()
731 ret |= adp5589_write(client, reg(ADP5585_RPULL_CONFIG_A) in adp5589_setup()
751 ret |= adp5589_write(client, in adp5589_setup()
759 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_A), in adp5589_setup()
762 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_B), in adp5589_setup()
765 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_C), in adp5589_setup()
772 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_A), in adp5589_setup()
775 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_B), in adp5589_setup()
782 ret |= adp5589_write(client, reg(ADP5589_RESET_CFG), in adp5589_setup()
784 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_D), in adp5589_setup()
788 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_A), in adp5589_setup()
791 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_B), in adp5589_setup()
796 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_C), in adp5589_setup()
799 ret |= adp5589_write(client, reg(ADP5589_POLL_PTIME_CFG), in adp5589_setup()
801 ret |= adp5589_write(client, ADP5589_5_INT_STATUS, in adp5589_setup()
807 ret |= adp5589_write(client, reg(ADP5589_GENERAL_CFG), in adp5589_setup()
809 ret |= adp5589_write(client, reg(ADP5589_INT_EN), in adp5589_setup()
1072 adp5589_write(client, kpad->var->reg(ADP5589_GENERAL_CFG), 0); in adp5589_remove()