mirror of https://gitee.com/openkylin/linux.git
Staging: sm750fb: fix hw_imageblit parameters
Fix up hw_imageblit() so that the function paramaters match up with what the driver expects them to be when using it as a function pointer. Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Teddy Wang <teddy.wang@siliconmotion.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bf2fbc2a12
commit
7c6f3fdc48
|
@ -395,21 +395,20 @@ static unsigned int deGetTransparency(struct lynx_accel * accel)
|
|||
return de_ctrl;
|
||||
}
|
||||
|
||||
int hw_imageblit(
|
||||
struct lynx_accel * accel,
|
||||
unsigned char *pSrcbuf, /* pointer to start of source buffer in system memory */
|
||||
int srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */
|
||||
unsigned int startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */
|
||||
unsigned int dBase, /* Address of destination: offset in frame buffer */
|
||||
unsigned int dPitch, /* Pitch value of destination surface in BYTE */
|
||||
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 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 */
|
||||
int hw_imageblit(struct lynx_accel *accel,
|
||||
const char *pSrcbuf, /* pointer to start of source buffer in system memory */
|
||||
u32 srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */
|
||||
u32 startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */
|
||||
u32 dBase, /* Address of destination: offset in frame buffer */
|
||||
u32 dPitch, /* Pitch value of destination surface in BYTE */
|
||||
u32 bytePerPixel, /* Color depth of destination surface */
|
||||
u32 dx,
|
||||
u32 dy, /* Starting coordinate of destination surface */
|
||||
u32 width,
|
||||
u32 height, /* width and height of rectange 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 */
|
||||
{
|
||||
unsigned int ulBytesPerScan;
|
||||
unsigned int ul4BytesPerScan;
|
||||
|
|
|
@ -258,19 +258,18 @@ unsigned int width,
|
|||
unsigned int height, /* width and height of rectangle in pixel value */
|
||||
unsigned int rop2);
|
||||
|
||||
int hw_imageblit(
|
||||
struct lynx_accel * accel,
|
||||
unsigned char *pSrcbuf, /* pointer to start of source buffer in system memory */
|
||||
int srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */
|
||||
unsigned int startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */
|
||||
unsigned int dBase, /* Address of destination: offset in frame buffer */
|
||||
unsigned int dPitch, /* Pitch value of destination surface in BYTE */
|
||||
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 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);
|
||||
int hw_imageblit(struct lynx_accel *accel,
|
||||
const char *pSrcbuf, /* pointer to start of source buffer in system memory */
|
||||
u32 srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */
|
||||
u32 startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */
|
||||
u32 dBase, /* Address of destination: offset in frame buffer */
|
||||
u32 dPitch, /* Pitch value of destination surface in BYTE */
|
||||
u32 bytePerPixel, /* Color depth of destination surface */
|
||||
u32 dx,
|
||||
u32 dy, /* Starting coordinate of destination surface */
|
||||
u32 width,
|
||||
u32 height, /* width and height of rectange 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);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue