edac: ibecc: Fix return error type

Fix return error type.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2021-07-20 20:37:26 +03:00 committed by Carles Cufí
commit 252ad12fe5

View file

@ -146,8 +146,8 @@ static inline int edac_inject_set_param2(const struct device *dev,
* @retval -ENOSYS if the optional interface is not implemented * @retval -ENOSYS if the optional interface is not implemented
* @retval 0 on success, error code otherwise * @retval 0 on success, error code otherwise
*/ */
static inline uint64_t edac_inject_get_param2(const struct device *dev, static inline int edac_inject_get_param2(const struct device *dev,
uint64_t *value) uint64_t *value)
{ {
const struct edac_driver_api *api = const struct edac_driver_api *api =
(const struct edac_driver_api *)dev->api; (const struct edac_driver_api *)dev->api;
@ -194,8 +194,8 @@ static inline int edac_inject_set_error_type(const struct device *dev,
* @retval -ENOSYS if the optional interface is not implemented * @retval -ENOSYS if the optional interface is not implemented
* @retval 0 on success, error code otherwise * @retval 0 on success, error code otherwise
*/ */
static inline uint32_t edac_inject_get_error_type(const struct device *dev, static inline int edac_inject_get_error_type(const struct device *dev,
uint32_t *error_type) uint32_t *error_type)
{ {
const struct edac_driver_api *api = const struct edac_driver_api *api =
(const struct edac_driver_api *)dev->api; (const struct edac_driver_api *)dev->api;