]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drivers: staging: sm750fb: Fix "'foo * bar' should be 'foo *bar'" errors
authorGreg Donald <gdonald@gmail.com>
Thu, 18 Jun 2015 20:06:56 +0000 (15:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Jun 2015 04:07:07 +0000 (21:07 -0700)
Fix checkpatch.pl "'foo * bar' should be 'foo *bar'" errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c
drivers/staging/sm750fb/ddk750_help.c
drivers/staging/sm750fb/ddk750_help.h
drivers/staging/sm750fb/ddk750_mode.c
drivers/staging/sm750fb/sm750.c
drivers/staging/sm750fb/sm750.h
drivers/staging/sm750fb/sm750_accel.c
drivers/staging/sm750fb/sm750_accel.h
drivers/staging/sm750fb/sm750_cursor.c
drivers/staging/sm750fb/sm750_cursor.h
drivers/staging/sm750fb/sm750_hw.c

index 981736fd3bc4bff6de2a11396d7a7401ab86f6a6..f4975d2d97ad5a282ce4f2bc13a56bb154f4345c 100644 (file)
@@ -433,7 +433,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
        unsigned int RN, quo, rem, fl_quo;
        unsigned int input, request;
        unsigned int tmpClock, ret;
-       pllcalparam * xparm;
+       pllcalparam *xparm;
 
 #if 1
        if (getChipType() == SM750LE) {
index 96c18eb36a2cac8009bfbf9ec785f7a7fa076030..1adcafcc51336b7bcdcd30a8b1bbc552611ab5b3 100644 (file)
@@ -1,11 +1,11 @@
 #include "ddk750_help.h"
 
-void __iomem * mmio750 = NULL;
+void __iomem *mmio750 = NULL;
 char revId750 = 0;
 unsigned short devId750 = 0;
 
 /* after driver mapped io registers, use this function first */
-void ddk750_set_mmio(void __iomem * addr, unsigned short devId, char revId)
+void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId)
 {
        mmio750 = addr;
        devId750 = devId;
index f99f907f0ad9c822e451ddcc9ea07f523ee1f58b..4285b056585aaed3883a80482c1fae6a10236f0a 100644 (file)
@@ -19,7 +19,7 @@
 #define POKE32(addr, data) writel(data, addr + mmio750)
 #endif
 
-extern void __iomem * mmio750;
+extern void __iomem *mmio750;
 extern char revId750;
 extern unsigned short devId750;
 #else
index a05474793ad4d8e9cbc0f57f60f87cc496e80ed1..74313ff84e456879854b4cb7d07067ca62dbea68 100644 (file)
@@ -75,7 +75,7 @@ static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam,
 
 
 /* only timing related registers will be  programed */
-static int programModeRegisters(mode_parameter_t * pModeParam, pll_value_t * pll)
+static int programModeRegisters(mode_parameter_t *pModeParam, pll_value_t *pll)
 {
        int ret = 0;
        int cnt = 0;
@@ -185,7 +185,7 @@ static int programModeRegisters(mode_parameter_t * pModeParam, pll_value_t * pll
        return ret;
 }
 
-int ddk750_setModeTiming(mode_parameter_t * parm, clock_type_t clock)
+int ddk750_setModeTiming(mode_parameter_t *parm, clock_type_t clock)
 {
        pll_value_t pll;
        unsigned int uiActualPixelClk;
index 3f30bc0d503b6fa354f0f052de7f9c985b717864..8e201f19cc0d2b3862eba9ced37203e6598c27f7 100644 (file)
@@ -1087,7 +1087,7 @@ NO_PARAM:
 }
 
 static int lynxfb_pci_probe(struct pci_dev *pdev,
-                           const struct pci_device_id * ent)
+                           const struct pci_device_id *ent)
 {
        struct fb_info *info[] = {NULL, NULL};
        struct lynx_share *share = NULL;
index 273882f9f2064a2e4650571e925da9bdb97fa2ff..cc80580bc8233d8dbb98e196bc3cb1e1cfcf4131 100644 (file)
@@ -45,8 +45,8 @@ struct lynx_share{
        /* common members */
        u16 devid;
        u8 revid;
-       struct pci_dev * pdev;
-       struct fb_info * fbinfo[2];
+       struct pci_dev *pdev;
+       struct fb_info *fbinfo[2];
        struct lynx_accel accel;
        int accel_off;
        int dual;
@@ -59,8 +59,8 @@ struct lynx_share{
        unsigned long vidreg_start;
        __u32 vidmem_size;
        __u32 vidreg_size;
-       void __iomem * pvReg;
-       unsigned char __iomem * pvMem;
+       void __iomem *pvReg;
+       unsigned char __iomem *pvMem;
        /* locks*/
        spinlock_t slock;
        /* function pointers */
@@ -77,12 +77,12 @@ struct lynx_cursor{
        int maxW;
        int maxH;
        /* base virtual address and offset  of cursor image */
-       char __iomem * vstart;
+       char __iomem *vstart;
        int offset;
        /* mmio addr of hw cursor */
        volatile char __iomem * mmio;
        /* the lynx_share of this adaptor */
-       struct lynx_share * share;
+       struct lynx_share *share;
        /* proc_routines */
        void (*enable)(struct lynx_cursor *);
        void (*disable)(struct lynx_cursor *);
@@ -93,8 +93,8 @@ struct lynx_cursor{
 };
 
 struct lynxfb_crtc{
-       unsigned char __iomem * vCursor; /* virtual address of cursor */
-       unsigned char __iomem * vScreen; /* virtual address of on_screen */
+       unsigned char __iomem *vCursor; /* virtual address of cursor */
+       unsigned char __iomem *vScreen; /* virtual address of on_screen */
        int oCursor; /* cursor address offset in vidmem */
        int oScreen; /* onscreen address offset in vidmem */
        int channel;/* which channel this crtc stands for*/
@@ -106,7 +106,7 @@ struct lynxfb_crtc{
        u16 ypanstep;
        u16 ywrapstep;
 
-       void * priv;
+       void *priv;
 
        int(*proc_setMode)(struct lynxfb_crtc*,
                                                struct fb_var_screeninfo*,
@@ -132,13 +132,13 @@ struct lynxfb_output{
                paths=3:means output for both panel and crt paths
        */
 
-       int * channel;
+       int *channel;
        /*      which channel these outputs linked with,for sm750:
                *channel=0 means primary channel
                *channel=1 means secondary channel
                output->channel ==> &crtc->channel
        */
-       void * priv;
+       void *priv;
 
        int(*proc_setMode)(struct lynxfb_output*,
                                                struct fb_var_screeninfo*,
@@ -155,8 +155,8 @@ struct lynxfb_par{
        unsigned int pseudo_palette[256];
        struct lynxfb_crtc crtc;
        struct lynxfb_output output;
-       struct fb_info * info;
-       struct lynx_share * share;
+       struct fb_info *info;
+       struct lynx_share *share;
 };
 
 #ifndef offsetof
index a2baffdde293af3d20aad587cd4d8d1a395eb02f..6eee4cd582d1ba2e2c1cbdcb66e157600edc5835 100644 (file)
 #include "sm750.h"
 #include "sm750_accel.h"
 #include "sm750_help.h"
-static inline void write_dpr(struct lynx_accel * accel, int offset, u32 regValue)
+static inline void write_dpr(struct lynx_accel *accel, int offset, u32 regValue)
 {
        writel(regValue, accel->dprBase + offset);
 }
 
-static inline u32 read_dpr(struct lynx_accel * accel, int offset)
+static inline u32 read_dpr(struct lynx_accel *accel, int offset)
 {
        return readl(accel->dprBase + offset);
 }
 
-static inline void write_dpPort(struct lynx_accel * accel, u32 data)
+static inline void write_dpPort(struct lynx_accel *accel, u32 data)
 {
        writel(data, accel->dpPortBase);
 }
 
-void hw_de_init(struct lynx_accel * accel)
+void hw_de_init(struct lynx_accel *accel)
 {
        /* setup 2d engine registers */
        u32 reg, clr;
@@ -79,7 +79,7 @@ void hw_de_init(struct lynx_accel * accel)
  * but if you need dual framebuffer driver,need call set2dformat
  * every time you use 2d function */
 
-void hw_set2dformat(struct lynx_accel * accel, int fmt)
+void hw_set2dformat(struct lynx_accel *accel, int fmt)
 {
        u32 reg;
        
@@ -89,7 +89,7 @@ void hw_set2dformat(struct lynx_accel * accel, int fmt)
        write_dpr(accel, DE_STRETCH_FORMAT, reg);
 }
 
-int hw_fillrect(struct lynx_accel * accel,
+int hw_fillrect(struct lynx_accel *accel,
                                u32 base, u32 pitch, u32 Bpp,
                                u32 x, u32 y, u32 width, u32 height,
                                u32 color, u32 rop)
@@ -137,7 +137,7 @@ int hw_fillrect(struct lynx_accel * accel,
 }
 
 int hw_copyarea(
-struct lynx_accel * accel,
+struct lynx_accel *accel,
 unsigned int sBase,  /* Address of source: offset in frame buffer */
 unsigned int sPitch, /* Pitch value of source surface in BYTE */
 unsigned int sx,
@@ -303,7 +303,7 @@ unsigned int rop2)   /* ROP value */
     return 0;
 }
 
-static unsigned int deGetTransparency(struct lynx_accel * accel)
+static unsigned int deGetTransparency(struct lynx_accel *accel)
 {
     unsigned int de_ctrl;
 
index 57e20fb6699e4705d01d9e7c80061f83c715e6bc..d3d256c21206b85b65d17401e9cac0d1e49973bc 100644 (file)
 #define BOTTOM_TO_TOP 1
 #define RIGHT_TO_LEFT 1
 
-void hw_set2dformat(struct lynx_accel * accel, int fmt);
+void hw_set2dformat(struct lynx_accel *accel, int fmt);
 
-void hw_de_init(struct lynx_accel * accel);
+void hw_de_init(struct lynx_accel *accel);
 
-int hw_fillrect(struct lynx_accel * accel,
+int hw_fillrect(struct lynx_accel *accel,
                                u32 base, u32 pitch, u32 Bpp,
                                u32 x, u32 y, u32 width, u32 height,
                                u32 color, u32 rop);
 
 int hw_copyarea(
-struct lynx_accel * accel,
+struct lynx_accel *accel,
 unsigned int sBase,  /* Address of source: offset in frame buffer */
 unsigned int sPitch, /* Pitch value of source surface in BYTE */
 unsigned int sx,
index cb37ea3bbbea3615973bb598c65efa4bb594f470..405e24b6768f8d709bbaec095a047ee1159a2bc9 100644 (file)
@@ -58,7 +58,7 @@ writel((data), cursor->mmio + (addr))
 
 
 /* hw_cursor_xxx works for voyager,718 and 750 */
-void hw_cursor_enable(struct lynx_cursor * cursor)
+void hw_cursor_enable(struct lynx_cursor *cursor)
 {
        u32 reg;
        reg = FIELD_VALUE(0, HWC_ADDRESS, ADDRESS, cursor->offset)|
@@ -66,18 +66,18 @@ void hw_cursor_enable(struct lynx_cursor * cursor)
                        FIELD_SET(0, HWC_ADDRESS, ENABLE, ENABLE);
        POKE32(HWC_ADDRESS, reg);
 }
-void hw_cursor_disable(struct lynx_cursor * cursor)
+void hw_cursor_disable(struct lynx_cursor *cursor)
 {
        POKE32(HWC_ADDRESS, 0);
 }
 
-void hw_cursor_setSize(struct lynx_cursor * cursor,
+void hw_cursor_setSize(struct lynx_cursor *cursor,
                                                int w, int h)
 {
        cursor->w = w;
        cursor->h = h;
 }
-void hw_cursor_setPos(struct lynx_cursor * cursor,
+void hw_cursor_setPos(struct lynx_cursor *cursor,
                                                int x, int y)
 {
        u32 reg;
@@ -85,14 +85,14 @@ void hw_cursor_setPos(struct lynx_cursor * cursor,
                        FIELD_VALUE(0, HWC_LOCATION, X, x);
        POKE32(HWC_LOCATION, reg);
 }
-void hw_cursor_setColor(struct lynx_cursor * cursor,
+void hw_cursor_setColor(struct lynx_cursor *cursor,
                                                u32 fg, u32 bg)
 {
        POKE32(HWC_COLOR_12, (fg<<16)|(bg&0xffff));
        POKE32(HWC_COLOR_3, 0xffe0);
 }
 
-void hw_cursor_setData(struct lynx_cursor * cursor,
+void hw_cursor_setData(struct lynx_cursor *cursor,
                        u16 rop, const u8* pcol, const u8* pmsk)
 {
        int i, j, count, pitch, offset;
@@ -183,7 +183,7 @@ void hw_cursor_setData(struct lynx_cursor * cursor,
 }
 
 
-void hw_cursor_setData2(struct lynx_cursor * cursor,
+void hw_cursor_setData2(struct lynx_cursor *cursor,
                        u16 rop, const u8* pcol, const u8* pmsk)
 {
        int i, j, count, pitch, offset;
index be588687a81dabfa9cc7a90503ab3e4f79011e49..e1716a600239662bb1a3119b8edcd4fbc824829f 100644 (file)
@@ -2,16 +2,16 @@
 #define LYNX_CURSOR_H__
 
 /* hw_cursor_xxx works for voyager,718 and 750 */
-void hw_cursor_enable(struct lynx_cursor * cursor);
-void hw_cursor_disable(struct lynx_cursor * cursor);
-void hw_cursor_setSize(struct lynx_cursor * cursor,
+void hw_cursor_enable(struct lynx_cursor *cursor);
+void hw_cursor_disable(struct lynx_cursor *cursor);
+void hw_cursor_setSize(struct lynx_cursor *cursor,
                                                int w, int h);
-void hw_cursor_setPos(struct lynx_cursor * cursor,
+void hw_cursor_setPos(struct lynx_cursor *cursor,
                                                int x, int y);
-void hw_cursor_setColor(struct lynx_cursor * cursor,
+void hw_cursor_setColor(struct lynx_cursor *cursor,
                                                u32 fg, u32 bg);
-void hw_cursor_setData(struct lynx_cursor * cursor,
+void hw_cursor_setData(struct lynx_cursor *cursor,
                        u16 rop, const u8* data, const u8* mask);
-void hw_cursor_setData2(struct lynx_cursor * cursor,
+void hw_cursor_setData2(struct lynx_cursor *cursor,
                        u16 rop, const u8* data, const u8* mask);
 #endif
index e70961eeb79cc71a0b9daae4ac1ff6e27423716a..84381bc414e79779be56fb4f97ff84c1ee6a3828 100644 (file)
@@ -27,7 +27,7 @@
 int hw_sm750_map(struct lynx_share* share, struct pci_dev* pdev)
 {
        int ret;
-       struct sm750_share * spec_share;
+       struct sm750_share *spec_share;
        
 
        spec_share = container_of(share, struct sm750_share, share);
@@ -100,10 +100,10 @@ exit:
 
 
 
-int hw_sm750_inithw(struct lynx_share* share, struct pci_dev * pdev)
+int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev)
 {
-       struct sm750_share * spec_share;
-       struct init_status * parm;
+       struct sm750_share *spec_share;
+       struct init_status *parm;
        
        spec_share = container_of(share, struct sm750_share, share);
        parm = &spec_share->state.initParm;
@@ -199,7 +199,7 @@ int hw_sm750_inithw(struct lynx_share* share, struct pci_dev * pdev)
 }
 
 
-resource_size_t hw_sm750_getVMSize(struct lynx_share * share)
+resource_size_t hw_sm750_getVMSize(struct lynx_share *share)
 {
        resource_size_t ret;
        
@@ -265,7 +265,7 @@ void hw_sm750_output_clear(struct lynxfb_output* output)
 
 int hw_sm750_crtc_checkMode(struct lynxfb_crtc* crtc, struct fb_var_screeninfo* var)
 {
-       struct lynx_share * share;
+       struct lynx_share *share;
        
 
        share = container_of(crtc, struct lynxfb_par, crtc)->share;
@@ -300,8 +300,8 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc* crtc,
        u32 reg;
        mode_parameter_t modparm;
        clock_type_t clock;
-       struct lynx_share * share;
-       struct lynxfb_par * par;
+       struct lynx_share *share;
+       struct lynxfb_par *par;
 
        
        ret = 0;
@@ -549,7 +549,7 @@ int hw_sm750_setBLANK(struct lynxfb_output* output, int blank)
 }
 
 
-void hw_sm750_initAccel(struct lynx_share * share)
+void hw_sm750_initAccel(struct lynx_share *share)
 {
        u32 reg;
        enable2DEngine(1);