Get rid of dev_type struct member and DEVTYPE_ macros