Skip to content

Commit 5279055

Browse files
committed
input: atmel_ptc: display firmware version
Use the firmware command to display the version to be sure everything is on track. Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
1 parent f43f759 commit 5279055

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/input/misc/atmel_ptc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,12 @@ static int atmel_ptc_conf_load(struct atmel_ptc *ptc)
796796
cmd.data = key_count;
797797
atmel_ptc_cmd_send(ptc, &cmd);
798798

799+
cmd.id = ATMEL_QTM_CMD_FIRM_VERSION;
800+
cmd.data = 0;
801+
atmel_ptc_cmd_send(ptc, &cmd);
802+
dev_dbg(ptc->dev, "firmware version: v%u.%u\n",
803+
(cmd.data >> 16) & 0xffff, cmd.data & 0xffff);
804+
799805
release_firmware(conf);
800806

801807
return ret;

0 commit comments

Comments
 (0)