]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: sm750fb, fix typos
authorMatej Vasek <xvasek1@fi.muni.cz>
Mon, 25 Jan 2016 15:02:33 +0000 (16:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:53:35 +0000 (18:53 -0800)
The code contained typos like "structur", "fointers", etc. Fix that.

No code change, only comments.

Signed-off-by: Matej Vasek <xvasek1@fi.muni.cz>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <linux-fbdev@vger.kernel.org>
Cc: <devel@driverdev.osuosl.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_hwi2c.c
drivers/staging/sm750fb/ddk750_mode.c
drivers/staging/sm750fb/ddk750_sii164.h
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_hw.c

index b824681e55a757a3d0af708553596c45dec71789..40253bd8cf2a6bbf93546f7d9eed02e7796705fb 100644 (file)
@@ -127,7 +127,7 @@ static unsigned int hw_i2c_write_data(
                if (hw_i2c_wait_tx_done() != 0)
                        break;
 
-               /* Substract length */
+               /* Subtract length */
                length -= (count + 1);
 
                /* Total byte written */
@@ -194,7 +194,7 @@ static unsigned int hw_i2c_read_data(
                for (i = 0; i <= count; i++)
                        *buf++ = PEEK32(I2C_DATA0 + i);
 
-               /* Substract length by 16 */
+               /* Subtract length by 16 */
                length -= (count + 1);
 
                /* Number of bytes read. */
index 0fd34fa93a411aa18b10974c1833a00f302edb2b..d0e3935654ff8ce038a559d84ddeded4852bc97f 100644 (file)
@@ -42,7 +42,7 @@ static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam,
        dispControl &= FIELD_CLEAR(CRT_DISPLAY_CTRL, CLK);
 
        /* Set bit 29:27 of display control register for the right clock */
-       /* Note that SM750LE only need to supported 7 resoluitons. */
+       /* Note that SM750LE only need to supported 7 resolutions. */
        if (x == 800 && y == 600)
                dispControl = FIELD_SET(dispControl, CRT_DISPLAY_CTRL, CLK, PLL41);
        else if (x == 1024 && y == 768)
index f2610c90eeb4c2ead006ae01ba95eecb4f7fec1e..664ad089f753b99d05484162d60db242b9ecc078 100644 (file)
@@ -39,7 +39,10 @@ unsigned char sii164IsConnected(void);
 unsigned char sii164CheckInterrupt(void);
 void sii164ClearInterrupt(void);
 #endif
-/* below register definination is used for Silicon Image SiI164 DVI controller chip */
+/*
+ * below register definition is used for
+ * Silicon Image SiI164 DVI controller chip
+ */
 /*
  * Vendor ID registers
  */
index 2ae2a522136f2baa739eb4accabf21d1d1f07e9e..c9d4871cd62da40b6defecf12cae98aa36e4ec55 100644 (file)
@@ -319,7 +319,7 @@ static int lynxfb_ops_set_par(struct fb_info *info)
        var = &info->var;
        fix = &info->fix;
 
-       /* fix structur is not so FIX ... */
+       /* fix structure is not so FIX ... */
        line_length = var->xres_virtual * var->bits_per_pixel / 8;
        line_length = ALIGN(line_length, crtc->line_pad);
        fix->line_length = line_length;
index fddffac6930f7e64dc918ab1af773aa7c0524c0f..8e70ce0d6da40cd7c7bf443d9dbc780d0737b17c 100644 (file)
@@ -53,7 +53,7 @@ struct lynx_accel {
        /* base virtual address of de data port */
        volatile unsigned char __iomem *dpPortBase;
 
-       /* function fointers */
+       /* function pointers */
        void (*de_init)(struct lynx_accel *);
 
        int (*de_wait)(void);/* see if hardware ready to work */
index 43e59725920ceec84d14b98cd4d3115eac2f3e6a..e150680a8cd14c496de4b6053e148ef2b09e6c08 100644 (file)
@@ -53,7 +53,7 @@ void hw_de_init(struct lynx_accel *accel)
                FIELD_CLEAR(DE_STRETCH_FORMAT, ADDRESSING)&
                FIELD_CLEAR(DE_STRETCH_FORMAT, SOURCE_HEIGHT);
 
-       /* DE_STRETCH bpp format need be initilized in setMode routine */
+       /* DE_STRETCH bpp format need be initialized in setMode routine */
        write_dpr(accel, DE_STRETCH_FORMAT, (read_dpr(accel, DE_STRETCH_FORMAT) & clr) | reg);
 
        /* disable clipping and transparent */
@@ -305,7 +305,7 @@ int hw_imageblit(struct lynx_accel *accel,
                 u32 dx,
                 u32 dy,       /* Starting coordinate of destination surface */
                 u32 width,
-                u32 height,   /* width and height of rectange in pixel value */
+                u32 height,   /* width and height of rectangle in pixel value */
                 u32 fColor,   /* Foreground color (corresponding to a 1 in the monochrome data */
                 u32 bColor,   /* Background color (corresponding to a 0 in the monochrome data */
                 u32 rop2)     /* ROP value */
index f252e47d5ee9f9f713ae4c6abf09ecda03372c7a..1ec66d28f456dfa947a13096f347721cbe0aaf13 100644 (file)
@@ -268,7 +268,7 @@ int hw_imageblit(struct lynx_accel *accel,
                 u32 dx,
                 u32 dy,       /* Starting coordinate of destination surface */
                 u32 width,
-                u32 height,   /* width and height of rectange in pixel value */
+                u32 height,   /* width and height of rectangle in pixel value */
                 u32 fColor,   /* Foreground color (corresponding to a 1 in the monochrome data */
                 u32 bColor,   /* Background color (corresponding to a 0 in the monochrome data */
                 u32 rop2);
index b33ec076f3f5e46bf4575fa82a2379c6b0ebd383..c0c2f1c4de82190cf3630c6b943da42a4bff60a1 100644 (file)
@@ -142,7 +142,7 @@ int hw_sm750_inithw(struct sm750_dev *sm750_dev, struct pci_dev *pdev)
                break;
                }
        } else {
-               /* for 750LE ,no DVI chip initilization makes Monitor no signal */
+               /* for 750LE ,no DVI chip initialization makes Monitor no signal */
                /* Set up GPIO for software I2C to program DVI chip in the
                   Xilinx SP605 board, in order to have video signal.
                 */