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:
Andrei Emeltchenko 2021-04-07 11:37:53 +03:00 committed by Anas Nashif
commit 6dfe3f668a

View file

@ -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
*