types: Add device_type to struct device