We can rely on compiler to notify us if we miss any case.
This approach may also reduce driver size (reported ~4K).
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170331102652.177664-1-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
return "PENDING";
case INTEL_UC_FIRMWARE_SUCCESS:
return "SUCCESS";
- default:
- MISSING_CASE(status);
- return "<invalid>";
}
+ return "<invalid>";
}
enum intel_uc_fw_type {
return "GuC";
case INTEL_UC_FW_TYPE_HUC:
return "HuC";
- default:
- MISSING_CASE(type);
- return "<invalid>";
}
+ return "uC";
}
/*