staging: most: rename DIMCB_OnError to dimcb_on_error
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 2 Nov 2015 13:59:02 +0000 (22:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
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>
drivers/staging/most/hdm-dim2/dim2_hal.c
drivers/staging/most/hdm-dim2/dim2_hal.h
drivers/staging/most/hdm-dim2/dim2_hdm.c

index 2610ad2030c1eba01c5c726adefa757b3558e1bd..d77566a1a59f71df4a51bb3a6c7df4b85babf582 100644 (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;
 }
 
index 323ac2d052a23bce4b7f9b940aab2fe7f61d449d..9e65e815eee1939bcdba5e10753a149bfd98ec38 100644 (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
 }
index fdaf9d2a6a7299f63e3b8fabca7faca553f01f37..ffe4bad5d7dd58f1cd59201c8ce148f75c5ce17f 100644 (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);
 }
 
This page took 0.0435410000000001 seconds and 5 git commands to generate.