Lines Matching refs:val
55 static int tca6416_write_reg(struct tca6416_keypad_chip *chip, int reg, u16 val)
60 i2c_smbus_write_word_data(chip->client, reg << 1, val) :
61 i2c_smbus_write_byte_data(chip->client, reg, val);
64 "%s failed, reg: %d, val: %d, error: %d\n",
65 __func__, reg, val, error);
72 static int tca6416_read_reg(struct tca6416_keypad_chip *chip, int reg, u16 *val)
85 *val = (u16)retval;
92 u16 reg_val, val;
102 val = reg_val ^ chip->reg_input;
106 if (val & (1 << i)) {