Lines Matching refs:error

126 	int error;  in tca8418_write_byte()  local
128 error = i2c_smbus_write_byte_data(keypad_data->client, reg, val); in tca8418_write_byte()
129 if (error < 0) { in tca8418_write_byte()
132 __func__, reg, val, error); in tca8418_write_byte()
133 return error; in tca8418_write_byte()
145 int error; in tca8418_read_byte() local
147 error = i2c_smbus_read_byte_data(keypad_data->client, reg); in tca8418_read_byte()
148 if (error < 0) { in tca8418_read_byte()
151 __func__, reg, error); in tca8418_read_byte()
152 return error; in tca8418_read_byte()
155 *val = (u8)error; in tca8418_read_byte()
164 int error, col, row; in tca8418_read_keypad() local
168 error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, &reg); in tca8418_read_keypad()
171 while (error >= 0 && reg > 0) { in tca8418_read_keypad()
186 error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, &reg); in tca8418_read_keypad()
189 if (error < 0) in tca8418_read_keypad()
203 int error; in tca8418_irq_handler() local
205 error = tca8418_read_byte(keypad_data, REG_INT_STAT, &reg); in tca8418_irq_handler()
206 if (error) { in tca8418_irq_handler()
223 error = tca8418_write_byte(keypad_data, REG_INT_STAT, reg); in tca8418_irq_handler()
224 if (error) in tca8418_irq_handler()
237 int reg, error; in tca8418_configure() local
240 error = tca8418_write_byte(keypad_data, REG_CFG, in tca8418_configure()
242 if (error < 0) in tca8418_configure()
251 error |= tca8418_write_byte(keypad_data, REG_KP_GPIO1, reg); in tca8418_configure()
252 error |= tca8418_write_byte(keypad_data, REG_KP_GPIO2, reg >> 8); in tca8418_configure()
253 error |= tca8418_write_byte(keypad_data, REG_KP_GPIO3, reg >> 16); in tca8418_configure()
256 error |= tca8418_write_byte(keypad_data, REG_DEBOUNCE_DIS1, reg); in tca8418_configure()
257 error |= tca8418_write_byte(keypad_data, REG_DEBOUNCE_DIS2, reg >> 8); in tca8418_configure()
258 error |= tca8418_write_byte(keypad_data, REG_DEBOUNCE_DIS3, reg >> 16); in tca8418_configure()
260 return error; in tca8418_configure()
276 int error, row_shift, max_keys; in tca8418_keypad_probe() local
328 error = tca8418_configure(keypad_data, rows, cols); in tca8418_keypad_probe()
329 if (error < 0) in tca8418_keypad_probe()
330 return error; in tca8418_keypad_probe()
345 error = matrix_keypad_build_keymap(keymap_data, NULL, rows, cols, in tca8418_keypad_probe()
347 if (error) { in tca8418_keypad_probe()
349 return error; in tca8418_keypad_probe()
362 error = devm_request_threaded_irq(dev, irq, NULL, tca8418_irq_handler, in tca8418_keypad_probe()
367 if (error) { in tca8418_keypad_probe()
369 client->irq, error); in tca8418_keypad_probe()
370 return error; in tca8418_keypad_probe()
373 error = input_register_device(input); in tca8418_keypad_probe()
374 if (error) { in tca8418_keypad_probe()
376 error); in tca8418_keypad_probe()
377 return error; in tca8418_keypad_probe()