staging: most: rename DIM_Startup to dim_startup
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 29 Oct 2015 07:44:11 +0000 (16:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames DIM_Startup to dim_startup to avoid camelcase
found by checkpatch.

CHECK: Avoid CamelCase: <DIM_Startup>
FILE: drivers/staging/most/hdm-dim2/dim2_hal.c:653:

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 c915c44f025e55d74fabdabdf83f0095f1e26694..583506dac323c6c4e89d6d94b22c4e658f145ba6 100644 (file)
@@ -650,7 +650,7 @@ static bool channel_detach_buffers(struct dim_channel *ch, u16 buffers_number)
 /* -------------------------------------------------------------------------- */
 /* API */
 
-u8 DIM_Startup(void *dim_base_address, u32 mlb_clock)
+u8 dim_startup(void *dim_base_address, u32 mlb_clock)
 {
        g.dim_is_initialized = false;
 
index 94ea6c7827f1c3b49ddbcbbdc67d46e67295b9c9..6e1392a0e60446d240a90dd97e5909197d9166be 100644 (file)
@@ -65,7 +65,7 @@ struct dim_channel {
        u16 done_sw_buffers_number; /*< Done software buffers number. */
 };
 
-u8 DIM_Startup(void *dim_base_address, u32 mlb_clock);
+u8 dim_startup(void *dim_base_address, u32 mlb_clock);
 
 void DIM_Shutdown(void);
 
index 9ab092a3ccfee043d4f3d376316dbaa1f79ec1d5..89e43e412c4e31fb5bfab8d10c3d61f274847486 100644 (file)
@@ -212,9 +212,9 @@ static int startup_dim(struct platform_device *pdev)
                        return ret;
        }
 
-       hal_ret = DIM_Startup(dev->io_base, dev->clk_speed);
+       hal_ret = dim_startup(dev->io_base, dev->clk_speed);
        if (hal_ret != DIM_NO_ERROR) {
-               pr_err("DIM_Startup failed: %d\n", hal_ret);
+               pr_err("dim_startup failed: %d\n", hal_ret);
                if (pdata && pdata->destroy)
                        pdata->destroy(pdata);
                return -ENODEV;