Lines Matching refs:adp5589_write

383 static int adp5589_write(struct i2c_client *client, u8 reg, u8 val)  in adp5589_write()  function
414 adp5589_write(kpad->client, kpad->var->reg(ADP5589_GPO_DATA_OUT_A) + in adp5589_gpio_set_value()
430 ret = adp5589_write(kpad->client, in adp5589_gpio_direction_input()
456 ret = adp5589_write(kpad->client, kpad->var->reg(ADP5589_GPO_DATA_OUT_A) in adp5589_gpio_direction_output()
458 ret |= adp5589_write(kpad->client, in adp5589_gpio_direction_output()
601 adp5589_write(client, ADP5589_5_INT_STATUS, status); /* Status is W1C */ in adp5589_irq()
629 ret = adp5589_write(client, reg(ADP5589_PIN_CONFIG_A), in adp5589_setup()
631 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_B), in adp5589_setup()
636 ret |= adp5589_write(client, ADP5589_PIN_CONFIG_C, in adp5589_setup()
640 ret |= adp5589_write(client, ADP5589_UNLOCK1, in adp5589_setup()
642 ret |= adp5589_write(client, ADP5589_UNLOCK2, in adp5589_setup()
644 ret |= adp5589_write(client, ADP5589_UNLOCK_TIMERS, in adp5589_setup()
646 ret |= adp5589_write(client, ADP5589_LOCK_CFG, LOCK_EN); in adp5589_setup()
667 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_A), in adp5589_setup()
669 ret |= adp5589_write(client, reg(ADP5589_GPI_EVENT_EN_B), in adp5589_setup()
672 ret |= adp5589_write(client, in adp5589_setup()
695 ret |= adp5589_write(client, reg(ADP5585_RPULL_CONFIG_A) in adp5589_setup()
715 ret |= adp5589_write(client, in adp5589_setup()
723 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_A), in adp5589_setup()
726 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_B), in adp5589_setup()
729 ret |= adp5589_write(client, reg(ADP5589_RESET1_EVENT_C), in adp5589_setup()
736 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_A), in adp5589_setup()
739 ret |= adp5589_write(client, reg(ADP5589_RESET2_EVENT_B), in adp5589_setup()
746 ret |= adp5589_write(client, reg(ADP5589_RESET_CFG), in adp5589_setup()
748 ret |= adp5589_write(client, reg(ADP5589_PIN_CONFIG_D), in adp5589_setup()
752 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_A), in adp5589_setup()
755 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_B), in adp5589_setup()
760 ret |= adp5589_write(client, reg(ADP5589_DEBOUNCE_DIS_C), in adp5589_setup()
763 ret |= adp5589_write(client, reg(ADP5589_POLL_PTIME_CFG), in adp5589_setup()
765 ret |= adp5589_write(client, ADP5589_5_INT_STATUS, in adp5589_setup()
771 ret |= adp5589_write(client, reg(ADP5589_GENERAL_CFG), in adp5589_setup()
773 ret |= adp5589_write(client, reg(ADP5589_INT_EN), in adp5589_setup()
942 adp5589_write(client, kpad->var->reg(ADP5589_GENERAL_CFG), 0); in adp5589_clear_config()