dediprog: Split device type and version parsing

Parse the device type with a separate sscanf() call. This will make
support for newer programmers easier that are identified by more than
a simple number.

Change-Id: I2bb4cb3f88b2e18092458508eb872a668887cf3a
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/93
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed