]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00170969: Remove build warnings in MLB driver
authorTerry Lv <r65388@freescale.com>
Tue, 27 Dec 2011 10:25:05 +0000 (18:25 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:28 +0000 (14:10 +0200)
Remove build warnings in MLB driver.

Signed-off-by: Terry Lv <r65388@freescale.com>
drivers/mxc/mlb/mxc_mlb150.c

index 55bb99e94c1f6e8fbed6463553ec833ab511f178..83f50e2eae041830fc3bec69b57661033815999f 100755 (executable)
@@ -683,20 +683,6 @@ static s32 mlb150_dev_ctr_write(u32 ctr_offset, const u32 *ctr_val)
        return 0;
 }
 
-static s32 mlb150_dev_cat_read(u32 ctr_offset, u32 ch, u16 *cat_val)
-{
-       u16 ctr_val[8] = { 0 };
-
-       if (unlikely(mlb150_dev_ctr_read(ctr_offset, (u32 *)ctr_val)))
-               return -ETIME;
-
-       /* Use u16 array to get u32 array value,
-        * need to convert */
-       *cat_val = ctr_val[ch % 8];
-
-       return 0;
-}
-
 static s32 mlb150_dev_cat_write(u32 ctr_offset, u32 ch, const u16 cat_val)
 {
        u16 ctr_val[8] = { 0 };
@@ -704,8 +690,6 @@ static s32 mlb150_dev_cat_write(u32 ctr_offset, u32 ch, const u16 cat_val)
        if (unlikely(mlb150_dev_ctr_read(ctr_offset, (u32 *)ctr_val)))
                return -ETIME;
 
-       /* Use u16 array to write u32 array value,
-        * need to convert */
        ctr_val[ch % 8] = cat_val;
        if (unlikely(mlb150_dev_ctr_write(ctr_offset, (u32 *)ctr_val)))
                return -ETIME;
@@ -713,12 +697,8 @@ static s32 mlb150_dev_cat_write(u32 ctr_offset, u32 ch, const u16 cat_val)
        return 0;
 }
 
-#define mlb150_dev_cat_mlb_read(ch, cat_val)   \
-       mlb150_dev_cat_read(MLB150_BUF_CAT_MLB_OFFSET + (ch >> 3), ch, cat_val)
 #define mlb150_dev_cat_mlb_write(ch, cat_val)  \
        mlb150_dev_cat_write(MLB150_BUF_CAT_MLB_OFFSET + (ch >> 3), ch, cat_val)
-#define mlb150_dev_cat_hbi_read(ch, cat_val)   \
-       mlb150_dev_cat_read(MLB150_BUF_CAT_HBI_OFFSET + (ch >> 3), ch, cat_val)
 #define mlb150_dev_cat_hbi_write(ch, cat_val)  \
        mlb150_dev_cat_write(MLB150_BUF_CAT_HBI_OFFSET + (ch >> 3), ch, cat_val)