Lines Matching defs:error

125 	int error;
127 error = i2c_smbus_write_byte_data(keypad_data->client, reg, val);
128 if (error < 0) {
130 "%s failed, reg: %d, val: %d, error: %d\n",
131 __func__, reg, val, error);
132 return error;
144 int error;
146 error = i2c_smbus_read_byte_data(keypad_data->client, reg);
147 if (error < 0) {
149 "%s failed, reg: %d, error: %d\n",
150 __func__, reg, error);
151 return error;
154 *val = (u8)error;
163 int error, col, row;
167 error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, &reg);
168 if (error < 0) {
203 int error;
205 error = tca8418_read_byte(keypad_data, REG_INT_STAT, &reg);
206 if (error) {
223 error = tca8418_write_byte(keypad_data, REG_INT_STAT, reg);
224 if (error)
237 int reg, error = 0;
244 error |= tca8418_write_byte(keypad_data, REG_KP_GPIO1, reg);
245 error |= tca8418_write_byte(keypad_data, REG_KP_GPIO2, reg >> 8);
246 error |= tca8418_write_byte(keypad_data, REG_KP_GPIO3, reg >> 16);
249 error |= tca8418_write_byte(keypad_data, REG_DEBOUNCE_DIS1, reg);
250 error |= tca8418_write_byte(keypad_data, REG_DEBOUNCE_DIS2, reg >> 8);
251 error |= tca8418_write_byte(keypad_data, REG_DEBOUNCE_DIS3, reg >> 16);
253 if (error)
254 return error;
256 error = tca8418_write_byte(keypad_data, REG_CFG,
259 return error;
269 int error, row_shift;
279 error = matrix_keypad_parse_properties(dev, &rows, &cols);
280 if (error)
281 return error;
304 error = tca8418_read_byte(keypad_data, REG_KEY_LCK_EC, &reg);
305 if (error)
321 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, input);
322 if (error) {
324 return error;
332 error = devm_request_threaded_irq(dev, client->irq,
336 if (error) {
337 dev_err(dev, "Unable to claim irq %d; error %d\n",
338 client->irq, error);
339 return error;
343 error = tca8418_configure(keypad_data, rows, cols);
344 if (error < 0)
345 return error;
347 error = input_register_device(input);
348 if (error) {
349 dev_err(dev, "Unable to register input device, error: %d\n",
350 error);
351 return error;