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()
636 adp5589_write(client, ADP5589_5_INT_STATUS, status); /* Status is W1C */ in adp5589_irq()
664 ret = adp5589_write(client, reg(ADP5589_PIN_CONFIG_A), in adp5589_setup()
666 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_B), in adp5589_setup()
671 ret |= adp5589_write(client, ADP5589_PIN_CONFIG_C, in adp5589_setup()
675 ret |= adp5589_write(client, ADP5589_UNLOCK1, in adp5589_setup()
677 ret |= adp5589_write(client, ADP5589_UNLOCK2, in adp5589_setup()
679 ret |= adp5589_write(client, ADP5589_UNLOCK_TIMERS, in adp5589_setup()
681 ret |= adp5589_write(client, ADP5589_LOCK_CFG, LOCK_EN); in adp5589_setup()
702 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_A), in adp5589_setup()
704 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_B), in adp5589_setup()
707 ret |= adp5589_write(client, in adp5589_setup()
730 ret |= adp5589_write(client, reg(ADP5585_RPULL_CONFIG_A) in adp5589_setup()
750 ret |= adp5589_write(client, in adp5589_setup()
758 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_A), in adp5589_setup()
761 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_B), in adp5589_setup()
764 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_C), in adp5589_setup()
771 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_A), in adp5589_setup()
774 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_B), in adp5589_setup()
781 ret |= adp5589_write(client, reg(ADP5589_RESET_CFG), in adp5589_setup()
783 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_D), in adp5589_setup()
787 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_A), in adp5589_setup()
790 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_B), in adp5589_setup()
795 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_C), in adp5589_setup()
798 ret |= adp5589_write(client, reg(ADP5589_POLL_PTIME_CFG), in adp5589_setup()
800 ret |= adp5589_write(client, ADP5589_5_INT_STATUS, in adp5589_setup()
806 ret |= adp5589_write(client, reg(ADP5589_GENERAL_CFG), in adp5589_setup()
808 ret |= adp5589_write(client, reg(ADP5589_INT_EN), in adp5589_setup()
1049 adp5589_write(client, kpad->var->reg(ADP5589_GENERAL_CFG), 0); in adp5589_remove()