From f3bf60efcb029d2a325926bc5f98b8ae27b2b0b1 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 13 Jan 2016 10:24:19 +0100 Subject: input: imx-keypad: Use dev_* functions driver should use dev_* rather than pr_* Signed-off-by: Sascha Hauer --- drivers/input/imx_keypad.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'drivers/input') diff --git a/drivers/input/imx_keypad.c b/drivers/input/imx_keypad.c index 331eadd75f..272b8367df 100644 --- a/drivers/input/imx_keypad.c +++ b/drivers/input/imx_keypad.c @@ -228,7 +228,7 @@ static void imx_keypad_fire_events(struct imx_keypad *keypad, kfifo_put(keypad->recv_fifo, (u_char*)(&keypad->keycodes[code]), sizeof(int)); - pr_debug("Event code: %d, val: %d", + dev_dbg(keypad->dev, "Event code: %d, val: %d", keypad->keycodes[code], matrix_volatile_state[col] & (1 << row)); } @@ -394,7 +394,7 @@ static int __init imx_keypad_probe(struct device_d *dev) int i; if (!keymap_data) { - pr_err("no keymap defined\n"); + dev_err(dev, "no keymap defined\n"); return -ENODEV; } @@ -418,12 +418,13 @@ static int __init imx_keypad_probe(struct device_d *dev) if (keypad->rows_en_mask > ((1 << MAX_MATRIX_KEY_ROWS) - 1) || keypad->cols_en_mask > ((1 << MAX_MATRIX_KEY_COLS) - 1)) { - pr_err("invalid key data (too many rows or colums)\n"); + dev_err(dev, "invalid key data (too many rows or colums)\n"); free(keypad); return -EINVAL; } - pr_debug("enabled rows mask: %x\n", keypad->rows_en_mask); - pr_debug("enabled cols mask: %x\n", keypad->cols_en_mask); + + dev_dbg(dev, "enabled rows mask: %x\n", keypad->rows_en_mask); + dev_dbg(dev, "enabled cols mask: %x\n", keypad->cols_en_mask); matrix_keypad_build_keymap(keymap_data, MATRIX_ROW_SHIFT, keypad->keycodes); -- cgit v1.2.3