This patch fixed spelling typo found in sm750fb source files. Both printk and comments are fixed. Signed-off-by: Masanari Iida <standby24x7@xxxxxxxxx> --- drivers/staging/sm750fb/ddk750_chip.c | 4 ++-- drivers/staging/sm750fb/ddk750_dvi.h | 2 +- drivers/staging/sm750fb/ddk750_help.h | 2 +- drivers/staging/sm750fb/ddk750_mode.c | 6 +++--- drivers/staging/sm750fb/ddk750_reg.h | 2 +- drivers/staging/sm750fb/ddk750_sii164.c | 4 ++-- drivers/staging/sm750fb/ddk750_swi2c.c | 2 +- drivers/staging/sm750fb/readme | 8 ++++---- drivers/staging/sm750fb/sm750.c | 20 ++++++++++---------- drivers/staging/sm750fb/sm750_accel.c | 4 ++-- drivers/staging/sm750fb/sm750_accel.h | 2 +- drivers/staging/sm750fb/sm750_hw.c | 2 +- drivers/staging/sm750fb/sm750_hw.h | 2 +- 13 files changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index b71169e..f05c3c4 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -264,7 +264,7 @@ int ddk750_initHw(initchip_param_t * pInitParam) unsigned int ulReg; #if 0 - //move the code to map regiter function. + //move the code to map register function. if(getChipType() == SM718){ /* turn on big endian bit*/ ulReg = PEEK32(0x74); @@ -447,7 +447,7 @@ unsigned int calcPllValue(unsigned int request_orig,pll_value_t *pll) #if 1 if (getChipType() == SM750LE) { - /* SM750LE don't have prgrammable PLL and M/N values to work on. + /* SM750LE don't have programmable PLL and M/N values to work on. Just return the requested clock. */ return request_orig; } diff --git a/drivers/staging/sm750fb/ddk750_dvi.h b/drivers/staging/sm750fb/ddk750_dvi.h index 50bcec2..ac4eafb 100644 --- a/drivers/staging/sm750fb/ddk750_dvi.h +++ b/drivers/staging/sm750fb/ddk750_dvi.h @@ -1,7 +1,7 @@ #ifndef DDK750_DVI_H__ #define DDK750_DVI_H__ -/* dvi chip stuffs structros */ +/* dvi chip stuffs structurs */ typedef long (*PFN_DVICTRL_INIT)( unsigned char edgeSelect, diff --git a/drivers/staging/sm750fb/ddk750_help.h b/drivers/staging/sm750fb/ddk750_help.h index 4fc93b5..18acb04 100644 --- a/drivers/staging/sm750fb/ddk750_help.h +++ b/drivers/staging/sm750fb/ddk750_help.h @@ -14,7 +14,7 @@ #warning "big endian on target cpu and enable nature big endian support of 718 capability !" #define PEEK32(addr) __raw_readl((void __iomem *)(mmio750)+(addr)) #define POKE32(addr,data) __raw_writel((data),(void __iomem*)(mmio750)+(addr)) -#else /* software control endianess */ +#else /* software control endianness */ #define PEEK32(addr) readl((addr)+mmio750) #define POKE32(addr,data) writel((data),(addr)+mmio750) #endif diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c index 2e418fb..41a17cc 100644 --- a/drivers/staging/sm750fb/ddk750_mode.c +++ b/drivers/staging/sm750fb/ddk750_mode.c @@ -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) @@ -74,7 +74,7 @@ static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam, -/* only timing related registers will be programed */ +/* only timing related registers will be programmed */ static int programModeRegisters(mode_parameter_t * pModeParam,pll_value_t * pll) { int ret = 0; @@ -162,7 +162,7 @@ static int programModeRegisters(mode_parameter_t * pModeParam,pll_value_t * pll) /* May a hardware bug or just my test chip (not confirmed). * PANEL_DISPLAY_CTRL register seems requiring few writes - * before a value can be succesfully written in. + * before a value can be successfully written in. * Added some masks to mask out the reserved bits. * Note: This problem happens by design. The hardware will wait for the * next vertical sync to turn on/off the plane. diff --git a/drivers/staging/sm750fb/ddk750_reg.h b/drivers/staging/sm750fb/ddk750_reg.h index 2016f97..fd931f5 100644 --- a/drivers/staging/sm750fb/ddk750_reg.h +++ b/drivers/staging/sm750fb/ddk750_reg.h @@ -1892,7 +1892,7 @@ #define CRT_PALETTE_RAM 0x080C00 /* 2D registers - * move their defination into general lynx_accel.h file + * move their definition into general lynx_accel.h file * because all smi graphic chip share the same drawing engine * register format */ #if 0 diff --git a/drivers/staging/sm750fb/ddk750_sii164.c b/drivers/staging/sm750fb/ddk750_sii164.c index faf8250..89280f5 100644 --- a/drivers/staging/sm750fb/ddk750_sii164.c +++ b/drivers/staging/sm750fb/ddk750_sii164.c @@ -256,7 +256,7 @@ long sii164InitChip( -/* below sii164 function is not neccessary */ +/* below sii164 function is not necessary */ #ifdef SII164_FULL_FUNCTIONS @@ -388,7 +388,7 @@ unsigned char sii164IsConnected() /* * sii164CheckInterrupt - * Checks if interrupt has occured. + * Checks if interrupt has occurred. * * Output: * 0 - No interrupt diff --git a/drivers/staging/sm750fb/ddk750_swi2c.c b/drivers/staging/sm750fb/ddk750_swi2c.c index b53407b..d16409f 100644 --- a/drivers/staging/sm750fb/ddk750_swi2c.c +++ b/drivers/staging/sm750fb/ddk750_swi2c.c @@ -31,7 +31,7 @@ * * I.e. the SCL may only be changed in section 1. and section 3. while * the SDA may only be changed in section 2. and section 4. The table - * below gives the changes for these 2 lines in the varios sections. + * below gives the changes for these 2 lines in the various sections. * * Section changes Table: * ====================== diff --git a/drivers/staging/sm750fb/readme b/drivers/staging/sm750fb/readme index ab9af79..cfa4595 100644 --- a/drivers/staging/sm750fb/readme +++ b/drivers/staging/sm750fb/readme @@ -5,7 +5,7 @@ Introduction: - 2D acceleration - 16MB integrated video memory -About the kernel module paramter of driver: +About the kernel module parameter of driver: Use 1280,8bpp index color and 60 hz mode: insmod ./sm750fb.ko g_option="1280x1024-8@60" @@ -20,16 +20,16 @@ About the kernel module paramter of driver: and user can use con2fb to link fbX and ttyX Notes: - 1) if you build the driver with built-in method, the paramter + 1) if you build the driver with built-in method, the parameter you edited in the grub config file will be also the - same format as above modular method,but additionaly add + same format as above modular method,but additionally add "video=sm750fb:" ahead of parameters,so,it looks like: video=sm750fb:noaccel,1280x1024@60,otherparam,etc... it equal to modular method with below command: insmod ./sm750fb.ko g_option="noaccel:1280x1024@60:otherparm:etc..." - 2) if you put 800x600 into the paramter without bpp and + 2) if you put 800x600 into the parameter without bpp and refresh rate, kernel driver will defaulty use 16bpp and 60hz Important: diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 520c69e..245a1c5 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -59,7 +59,7 @@ static char * g_option = NULL; #endif /* if not use spin_lock,system will die if user load driver - * and immediatly unload driver frequently (dual)*/ + * and immediately unload driver frequently (dual)*/ static inline void myspin_lock(spinlock_t * sl){ struct lynx_share * share; share = container_of(sl,struct lynx_share,slock); @@ -338,7 +338,7 @@ static int lynxfb_suspend(struct pci_dev * pdev,pm_message_t mesg) ret = pci_save_state(pdev); if(ret){ - pr_err("error:%d occured in pci_save_state\n",ret); + pr_err("error:%d occurred in pci_save_state\n",ret); return ret; } @@ -349,7 +349,7 @@ static int lynxfb_suspend(struct pci_dev * pdev,pm_message_t mesg) pci_disable_device(pdev); ret = pci_set_power_state(pdev,pci_choose_state(pdev,mesg)); if(ret){ - pr_err("error:%d occured in pci_set_power_state\n",ret); + pr_err("error:%d occurred in pci_set_power_state\n",ret); return ret; } } @@ -382,7 +382,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 = PADDING(crtc->line_pad,line_length); fix->line_length = line_length; @@ -467,7 +467,7 @@ static int lynxfb_resume(struct pci_dev* pdev) console_lock(); if((ret = pci_set_power_state(pdev, PCI_D0)) != 0){ - pr_err("error:%d occured in pci_set_power_state\n",ret); + pr_err("error:%d occurred in pci_set_power_state\n",ret); return ret; } @@ -475,7 +475,7 @@ static int lynxfb_resume(struct pci_dev* pdev) if(pdev->dev.power.power_state.event != PM_EVENT_FREEZE){ pci_restore_state(pdev); if ((ret = pci_enable_device(pdev)) != 0){ - pr_err("error:%d occured in pci_enable_device\n",ret); + pr_err("error:%d occurred in pci_enable_device\n",ret); return ret; } pci_set_master(pdev); @@ -653,7 +653,7 @@ static int lynxfb_ops_check_var(struct fb_var_screeninfo* var,struct fb_info* in var->height = var->width = -1; var->accel_flags = 0;/*FB_ACCELF_TEXT;*/ - /* check if current fb's video memory big enought to hold the onscreen */ + /* check if current fb's video memory big enough to hold the onscreen */ request = var->xres_virtual * (var->bits_per_pixel >> 3); /* defaulty crtc->channel go with par->index */ @@ -1024,7 +1024,7 @@ static int lynxfb_set_fbinfo(struct fb_info* info,int index) info->cmap.transp); if((ret = fb_alloc_cmap(&info->cmap,256,0)) < 0){ - pr_err("Could not allcate memory for cmap.\n"); + pr_err("Could not allocate memory for cmap.\n"); goto exit; } @@ -1217,7 +1217,7 @@ static int lynxfb_pci_probe(struct pci_dev * pdev, pr_err("Unable to setup MTRR.\n"); }else{ share->mtrr.vram_added = 1; - pr_info("MTRR added succesfully\n"); + pr_info("MTRR added successfully\n"); } } #endif @@ -1231,7 +1231,7 @@ static int lynxfb_pci_probe(struct pci_dev * pdev, /* call chipInit routine */ hw_sm750_inithw(share,pdev); - /* allocate frame buffer info structor according to g_dualview */ + /* allocate frame buffer info structure according to g_dualview */ fbidx = 0; ALLOC_FB: info[fbidx] = framebuffer_alloc(sizeof(struct lynxfb_par),&pdev->dev); diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c index ee211de..74518ef 100644 --- a/drivers/staging/sm750fb/sm750_accel.c +++ b/drivers/staging/sm750fb/sm750_accel.c @@ -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 */ @@ -406,7 +406,7 @@ unsigned int bytePerPixel, /* Color depth of destination surface */ unsigned int dx, unsigned int dy, /* Starting coordinate of destination surface */ unsigned int width, -unsigned int height, /* width and height of rectange in pixel value */ +unsigned int height, /* width and height of rectangle in pixel value */ unsigned int fColor, /* Foreground color (corresponding to a 1 in the monochrome data */ unsigned int bColor, /* Background color (corresponding to a 0 in the monochrome data */ unsigned int rop2) /* ROP value */ diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h index 575f4a7..7267191 100644 --- a/drivers/staging/sm750fb/sm750_accel.h +++ b/drivers/staging/sm750fb/sm750_accel.h @@ -269,7 +269,7 @@ unsigned int bytePerPixel, /* Color depth of destination surface */ unsigned int dx, unsigned int dy, /* Starting coordinate of destination surface */ unsigned int width, -unsigned int height, /* width and height of rectange in pixel value */ +unsigned int height, /* width and height of rectangle in pixel value */ unsigned int fColor, /* Foreground color (corresponding to a 1 in the monochrome data */ unsigned int bColor, /* Background color (corresponding to a 0 in the monochrome data */ unsigned int rop2); diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c index cd971bd..07f9a52 100644 --- a/drivers/staging/sm750fb/sm750_hw.c +++ b/drivers/staging/sm750fb/sm750_hw.c @@ -168,7 +168,7 @@ int hw_sm750_inithw(struct lynx_share* share,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. */ diff --git a/drivers/staging/sm750fb/sm750_hw.h b/drivers/staging/sm750fb/sm750_hw.h index b05be5e..c607d9b 100644 --- a/drivers/staging/sm750fb/sm750_hw.h +++ b/drivers/staging/sm750fb/sm750_hw.h @@ -65,7 +65,7 @@ struct sm750_state{ }; /* sm750_share stands for a presentation of two frame buffer - that use one sm750 adaptor, it is similiar to the super class of lynx_share + that use one sm750 adaptor, it is similar to the super class of lynx_share in C++ */ -- 2.3.1.251.g83036f8 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel