Commit fbb8c963 authored by Matej Vasek's avatar Matej Vasek Committed by Greg Kroah-Hartman
Browse files

staging: sm750fb, fix typos



The code contained typos like "structur", "fointers", etc. Fix that.

No code change, only comments.

Signed-off-by: default avatarMatej 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: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe718590
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -127,7 +127,7 @@ static unsigned int hw_i2c_write_data(
		if (hw_i2c_wait_tx_done() != 0)
		if (hw_i2c_wait_tx_done() != 0)
			break;
			break;


		/* Substract length */
		/* Subtract length */
		length -= (count + 1);
		length -= (count + 1);


		/* Total byte written */
		/* Total byte written */
@@ -194,7 +194,7 @@ static unsigned int hw_i2c_read_data(
		for (i = 0; i <= count; i++)
		for (i = 0; i <= count; i++)
			*buf++ = PEEK32(I2C_DATA0 + i);
			*buf++ = PEEK32(I2C_DATA0 + i);


		/* Substract length by 16 */
		/* Subtract length by 16 */
		length -= (count + 1);
		length -= (count + 1);


		/* Number of bytes read. */
		/* Number of bytes read. */
+1 −1
Original line number Original line Diff line number Diff line
@@ -42,7 +42,7 @@ static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam,
	dispControl &= FIELD_CLEAR(CRT_DISPLAY_CTRL, CLK);
	dispControl &= FIELD_CLEAR(CRT_DISPLAY_CTRL, CLK);


	/* Set bit 29:27 of display control register for the right clock */
	/* 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)
	if (x == 800 && y == 600)
		dispControl = FIELD_SET(dispControl, CRT_DISPLAY_CTRL, CLK, PLL41);
		dispControl = FIELD_SET(dispControl, CRT_DISPLAY_CTRL, CLK, PLL41);
	else if (x == 1024 && y == 768)
	else if (x == 1024 && y == 768)
+4 −1
Original line number Original line Diff line number Diff line
@@ -39,7 +39,10 @@ unsigned char sii164IsConnected(void);
unsigned char sii164CheckInterrupt(void);
unsigned char sii164CheckInterrupt(void);
void sii164ClearInterrupt(void);
void sii164ClearInterrupt(void);
#endif
#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
 * Vendor ID registers
 */
 */
+1 −1
Original line number Original line Diff line number Diff line
@@ -319,7 +319,7 @@ static int lynxfb_ops_set_par(struct fb_info *info)
	var = &info->var;
	var = &info->var;
	fix = &info->fix;
	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 = var->xres_virtual * var->bits_per_pixel / 8;
	line_length = ALIGN(line_length, crtc->line_pad);
	line_length = ALIGN(line_length, crtc->line_pad);
	fix->line_length = line_length;
	fix->line_length = line_length;
+1 −1
Original line number Original line Diff line number Diff line
@@ -53,7 +53,7 @@ struct lynx_accel {
	/* base virtual address of de data port */
	/* base virtual address of de data port */
	volatile unsigned char __iomem *dpPortBase;
	volatile unsigned char __iomem *dpPortBase;


	/* function fointers */
	/* function pointers */
	void (*de_init)(struct lynx_accel *);
	void (*de_init)(struct lynx_accel *);


	int (*de_wait)(void);/* see if hardware ready to work */
	int (*de_wait)(void);/* see if hardware ready to work */
Loading