edac: Introduce enum type for error type
Use edac_error_type enum type instead of defines for EDAC error types. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
1e71415214
commit
5567f498f6
1 changed files with 9 additions and 4 deletions
|
@ -48,10 +48,15 @@ typedef int (*edac_api_notify_cb_set_f)(const struct device *dev,
|
|||
* @{
|
||||
*/
|
||||
|
||||
/** @brief Correctable error type */
|
||||
#define EDAC_ERROR_TYPE_DRAM_COR BIT(0)
|
||||
/** @brief Uncorrectable error type */
|
||||
#define EDAC_ERROR_TYPE_DRAM_UC BIT(1)
|
||||
/**
|
||||
* @brief EDAC error type
|
||||
*/
|
||||
enum edac_error_type {
|
||||
/** Correctable error type */
|
||||
EDAC_ERROR_TYPE_DRAM_COR = BIT(0),
|
||||
/** Uncorrectable error type */
|
||||
EDAC_ERROR_TYPE_DRAM_UC = BIT(1)
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief EDAC driver API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue