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: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chaehyun Lim 2015-11-02 22:59:02 +09:00 committed by Greg Kroah-Hartman
parent b724207b41
commit de6687313d
3 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ static inline u32 bit_mask(u8 position)
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;
}

View File

@ -107,7 +107,7 @@ u32 DIMCB_IoRead(u32 *ptr32);
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
}

View File

@ -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
* @error_id: Error ID
* @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);
}