edac: ibecc: Fix return error type
Fix return error type. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
5469310628
commit
252ad12fe5
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue