]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: most: rename DIM_DestroyChannel to dim_destroy_channel
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 2 Nov 2015 13:59:12 +0000 (22:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames DIM_DestroyChannel to dim_destroy_channel to avoid
camelcase found by checkpatch.

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

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 a57816ae861e9c11d76bf306b1cdaee94f575a50..cb92461fa36cf59bcbf178b562895bacafb1d200 100644 (file)
@@ -803,7 +803,7 @@ u8 dim_init_sync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
        return DIM_NO_ERROR;
 }
 
-u8 DIM_DestroyChannel(struct dim_channel *ch)
+u8 dim_destroy_channel(struct dim_channel *ch)
 {
        if (!g.dim_is_initialized || !ch)
                return DIM_ERR_DRIVER_NOT_INITIALIZED;
index 8692bb7dd68f7442a1667135239016d3381017ee..bdde159671a857848bd747e0bb80ab06ed74ca09 100644 (file)
@@ -89,7 +89,7 @@ u8 dim_init_isoc(struct dim_channel *ch, u8 is_tx, u16 ch_address,
 u8 dim_init_sync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
                 u16 bytes_per_frame);
 
-u8 DIM_DestroyChannel(struct dim_channel *ch);
+u8 dim_destroy_channel(struct dim_channel *ch);
 
 void DIM_ServiceIrq(struct dim_channel *const *channels);
 
index 63219852d11260965c8001060e4c7a31d38a90b8..6cd6c788e6f7eb272241ca49dd3d80a8acbf9f6b 100644 (file)
@@ -706,7 +706,7 @@ static int poison_channel(struct most_interface *most_iface, int ch_idx)
                return -EPERM;
 
        spin_lock_irqsave(&dim_lock, flags);
-       hal_ret = DIM_DestroyChannel(&hdm_ch->ch);
+       hal_ret = dim_destroy_channel(&hdm_ch->ch);
        hdm_ch->is_initialized = false;
        if (ch_idx == dev->atx_idx)
                dev->atx_idx = -1;