frecon: fix duplicate keystrokes

The fix is to check for duplicate input devices by path in input_add() and
skip them.

BUG=chromium:517591
TEST=verify the WARNING message about duplicate input devices is seen

Change-Id: I53d09294f96074b2e7c9fdd8966c5840c64ba91d
Reviewed-on: https://chromium-review.googlesource.com/299586
Commit-Ready: Haixia Shi <hshi@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
(cherry picked from commit d288e03b23b7b779a55eed2488cedcbfd83b6f05)
Reviewed-on: https://chromium-review.googlesource.com/299888
Reviewed-by: Haixia Shi <hshi@chromium.org>
Commit-Queue: Haixia Shi <hshi@chromium.org>
Trybot-Ready: Haixia Shi <hshi@chromium.org>
1 file changed