edac: Include error injection API to documentation
Remove #ifdefs making code cleaner and including error injection API functions to documentation. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
32b17d3b0a
commit
6dfe3f668a
1 changed files with 0 additions and 6 deletions
|
@ -38,7 +38,6 @@ enum edac_error_type {
|
|||
* This is the mandatory API any EDAC driver needs to expose.
|
||||
*/
|
||||
__subsystem struct edac_driver_api {
|
||||
#if defined(CONFIG_EDAC_ERROR_INJECT)
|
||||
/* Error Injection API is disabled by default */
|
||||
int (*inject_set_param1)(const struct device *dev, uint64_t value);
|
||||
int (*inject_get_param1)(const struct device *dev, uint64_t *value);
|
||||
|
@ -47,7 +46,6 @@ __subsystem struct edac_driver_api {
|
|||
int (*inject_set_error_type)(const struct device *dev, uint32_t value);
|
||||
int (*inject_get_error_type)(const struct device *dev, uint32_t *value);
|
||||
int (*inject_error_trigger)(const struct device *dev);
|
||||
#endif /* CONFIG_EDAC_ERROR_INJECT */
|
||||
|
||||
/* Error Logging API */
|
||||
int (*ecc_error_log_get)(const struct device *dev, uint64_t *value);
|
||||
|
@ -64,8 +62,6 @@ __subsystem struct edac_driver_api {
|
|||
edac_notify_callback_f cb);
|
||||
};
|
||||
|
||||
#if defined(CONFIG_EDAC_ERROR_INJECT)
|
||||
|
||||
/**
|
||||
* @brief Set injection parameter param1
|
||||
*
|
||||
|
@ -231,8 +227,6 @@ static inline int edac_inject_error_trigger(const struct device *dev)
|
|||
return api->inject_error_trigger(dev);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_EDAC_ERROR_INJECT */
|
||||
|
||||
/**
|
||||
* @brief Get ECC Error Log
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue