Commit de668731 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: most: rename DIMCB_OnError to dimcb_on_error

This patch renames DIMCB_OnError to dimcb_on_error to avoid camelcase
found by checkpatch.

CHECK: Avoid CamelCase: <DIMCB_OnError>
FILE: drivers/staging/most/hdm-dim2/dim2_hal.c:77:
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b724207b
...@@ -74,7 +74,7 @@ static inline u32 bit_mask(u8 position) ...@@ -74,7 +74,7 @@ static inline u32 bit_mask(u8 position)
static inline bool dim_on_error(u8 error_id, const char *error_message) static inline bool dim_on_error(u8 error_id, const char *error_message)
{ {
DIMCB_OnError(error_id, error_message); dimcb_on_error(error_id, error_message);
return false; return false;
} }
......
...@@ -107,7 +107,7 @@ u32 DIMCB_IoRead(u32 *ptr32); ...@@ -107,7 +107,7 @@ u32 DIMCB_IoRead(u32 *ptr32);
void DIMCB_IoWrite(u32 *ptr32, u32 value); void DIMCB_IoWrite(u32 *ptr32, u32 value);
void DIMCB_OnError(u8 error_id, const char *error_message); void dimcb_on_error(u8 error_id, const char *error_message);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -154,14 +154,14 @@ void DIMCB_IoWrite(u32 *ptr32, u32 value) ...@@ -154,14 +154,14 @@ void DIMCB_IoWrite(u32 *ptr32, u32 value)
} }
/** /**
* DIMCB_OnError - callback from HAL to report miscommunication between * dimcb_on_error - callback from HAL to report miscommunication between
* HDM and HAL * HDM and HAL
* @error_id: Error ID * @error_id: Error ID
* @error_message: Error message. Some text in a free format * @error_message: Error message. Some text in a free format
*/ */
void DIMCB_OnError(u8 error_id, const char *error_message) void dimcb_on_error(u8 error_id, const char *error_message)
{ {
pr_err("DIMCB_OnError: error_id - %d, error_message - %s\n", error_id, pr_err("dimcb_on_error: error_id - %d, error_message - %s\n", error_id,
error_message); error_message);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment