Commit 82eeffd7 authored by Pavel Machek's avatar Pavel Machek Committed by James Toy

Fix checkpatch warnings in HTC Dream display driver.

Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Rebecca Schultz Zavin <rebecca@android.com>
Cc: Dima Zavin <dima@android.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 73a03133
...@@ -199,39 +199,39 @@ struct __attribute__((packed)) mddi_video_stream { ...@@ -199,39 +199,39 @@ struct __attribute__((packed)) mddi_video_stream {
uint16_t client_id; /* 0 */ uint16_t client_id; /* 0 */
uint16_t video_data_format_descriptor; uint16_t video_data_format_descriptor;
/* format of each pixel in the Pixel Data in the present stream in the /* format of each pixel in the Pixel Data in the present stream in the
* present packet. * present packet.
* If bits [15:13] = 000 monochrome * If bits [15:13] = 000 monochrome
* If bits [15:13] = 001 color pixels (palette). * If bits [15:13] = 001 color pixels (palette).
* If bits [15:13] = 010 color pixels in raw RGB * If bits [15:13] = 010 color pixels in raw RGB
* If bits [15:13] = 011 data in 4:2:2 Y Cb Cr format * If bits [15:13] = 011 data in 4:2:2 Y Cb Cr format
* If bits [15:13] = 100 Bayer pixels * If bits [15:13] = 100 Bayer pixels
*/ */
uint16_t pixel_data_attributes; uint16_t pixel_data_attributes;
/* interpreted as follows: /* interpreted as follows:
* Bits [1:0] = 11 pixel data is displayed to both eyes * Bits [1:0] = 11 pixel data is displayed to both eyes
* Bits [1:0] = 10 pixel data is routed to the left eye only. * Bits [1:0] = 10 pixel data is routed to the left eye only.
* Bits [1:0] = 01 pixel data is routed to the right eye only. * Bits [1:0] = 01 pixel data is routed to the right eye only.
* Bits [1:0] = 00 pixel data is routed to the alternate display. * Bits [1:0] = 00 pixel data is routed to the alternate display.
* Bit 2 is 0 Pixel Data is in the standard progressive format. * Bit 2 is 0 Pixel Data is in the standard progressive format.
* Bit 2 is 1 Pixel Data is in interlace format. * Bit 2 is 1 Pixel Data is in interlace format.
* Bit 3 is 0 Pixel Data is in the standard progressive format. * Bit 3 is 0 Pixel Data is in the standard progressive format.
* Bit 3 is 1 Pixel Data is in alternate pixel format. * Bit 3 is 1 Pixel Data is in alternate pixel format.
* Bit 4 is 0 Pixel Data is to or from the display frame buffer. * Bit 4 is 0 Pixel Data is to or from the display frame buffer.
* Bit 4 is 1 Pixel Data is to or from the camera. * Bit 4 is 1 Pixel Data is to or from the camera.
* Bit 5 is 0 pixel data contains the next consecutive row of pixels. * Bit 5 is 0 pixel data contains the next consecutive row of pixels.
* Bit 5 is 1 X Left Edge, Y Top Edge, X Right Edge, Y Bottom Edge, * Bit 5 is 1 X Left Edge, Y Top Edge, X Right Edge, Y Bottom Edge,
* X Start, and Y Start parameters are not defined and * X Start, and Y Start parameters are not defined and
* shall be ignored by the client. * shall be ignored by the client.
* Bits [7:6] = 01 Pixel data is written to the offline image buffer. * Bits [7:6] = 01 Pixel data is written to the offline image buffer.
* Bits [7:6] = 00 Pixel data is written to the buffer to refresh display. * Bits [7:6] = 00 Pixel data is written to the buffer to refresh display.
* Bits [7:6] = 11 Pixel data is written to all image buffers. * Bits [7:6] = 11 Pixel data is written to all image buffers.
* Bits [7:6] = 10 Invalid. Reserved for future use. * Bits [7:6] = 10 Invalid. Reserved for future use.
* Bits 8 through 11 alternate display number. * Bits 8 through 11 alternate display number.
* Bits 12 through 14 are reserved for future use and shall be set to zero. * Bits 12 through 14 are reserved for future use and shall be set to zero.
* Bit 15 is 1 the row of pixels is the last row of pixels in a frame. * Bit 15 is 1 the row of pixels is the last row of pixels in a frame.
*/ */
uint16_t x_left_edge; uint16_t x_left_edge;
uint16_t y_top_edge; uint16_t y_top_edge;
...@@ -239,17 +239,19 @@ struct __attribute__((packed)) mddi_video_stream { ...@@ -239,17 +239,19 @@ struct __attribute__((packed)) mddi_video_stream {
uint16_t x_right_edge; uint16_t x_right_edge;
uint16_t y_bottom_edge; uint16_t y_bottom_edge;
/* X,Y coordinate of the bottom right edge of the window being updated. */ /* X,Y coordinate of the bottom right edge of the window being
* updated. */
uint16_t x_start; uint16_t x_start;
uint16_t y_start; uint16_t y_start;
/* (X Start, Y Start) is the first pixel in the Pixel Data field below. */ /* (X Start, Y Start) is the first pixel in the Pixel Data field
* below. */
uint16_t pixel_count; uint16_t pixel_count;
/* number of pixels in the Pixel Data field below. */ /* number of pixels in the Pixel Data field below. */
uint16_t parameter_CRC; uint16_t parameter_CRC;
/* 16-bit CRC of all bytes from the Packet Length to the Pixel Count. */ /* 16-bit CRC of all bytes from the Packet Length to the Pixel Count. */
uint16_t reserved; uint16_t reserved;
/* 16-bit variable to make structure align on 4 byte boundary */ /* 16-bit variable to make structure align on 4 byte boundary */
......
This diff is collapsed.
...@@ -31,8 +31,8 @@ enum { ...@@ -31,8 +31,8 @@ enum {
MDP_DOWNSCALE_MAX, MDP_DOWNSCALE_MAX,
}; };
extern struct mdp_table_entry* mdp_downscale_x_table[MDP_DOWNSCALE_MAX]; extern struct mdp_table_entry *mdp_downscale_x_table[MDP_DOWNSCALE_MAX];
extern struct mdp_table_entry* mdp_downscale_y_table[MDP_DOWNSCALE_MAX]; extern struct mdp_table_entry *mdp_downscale_y_table[MDP_DOWNSCALE_MAX];
extern struct mdp_table_entry mdp_gaussian_blur_table[]; extern struct mdp_table_entry mdp_gaussian_blur_table[];
#endif //_MDP_SCALE_TABLES_H_ #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment