Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: i2c: tvp7002: rearrange description of structure members

This patch rearranges the description of field members of
struct tvp7002_config. Also as the all the fields where accepting
a value either 0/1, made the members as bool.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Lad, Prabhakar and committed by
Mauro Carvalho Chehab
19ec9305 abc0fd73

+20 -24
+20 -24
include/media/tvp7002.h
··· 28 28 29 29 #define TVP7002_MODULE_NAME "tvp7002" 30 30 31 - /* Platform-dependent data 32 - * 33 - * clk_polarity: 34 - * 0 -> data clocked out on rising edge of DATACLK signal 35 - * 1 -> data clocked out on falling edge of DATACLK signal 36 - * hs_polarity: 37 - * 0 -> active low HSYNC output 38 - * 1 -> active high HSYNC output 39 - * sog_polarity: 40 - * 0 -> normal operation 41 - * 1 -> operation with polarity inverted 42 - * vs_polarity: 43 - * 0 -> active low VSYNC output 44 - * 1 -> active high VSYNC output 45 - * fid_polarity: 46 - * 0 -> the field ID output is set to logic 1 for an odd 47 - * field (field 1) and set to logic 0 for an even 48 - * field (field 0). 49 - * 1 -> operation with polarity inverted. 31 + /** 32 + * struct tvp7002_config - Platform dependent data 33 + *@clk_polarity: Clock polarity 34 + * 0 - Data clocked out on rising edge of DATACLK signal 35 + * 1 - Data clocked out on falling edge of DATACLK signal 36 + *@hs_polarity: HSYNC polarity 37 + * 0 - Active low HSYNC output, 1 - Active high HSYNC output 38 + *@vs_polarity: VSYNC Polarity 39 + * 0 - Active low VSYNC output, 1 - Active high VSYNC output 40 + *@fid_polarity: Active-high Field ID polarity. 41 + * 0 - The field ID output is set to logic 1 for an odd field 42 + * (field 1) and set to logic 0 for an even field (field 0). 43 + * 1 - Operation with polarity inverted. 44 + *@sog_polarity: Active high Sync on Green output polarity. 45 + * 0 - Normal operation, 1 - Operation with polarity inverted 50 46 */ 51 47 struct tvp7002_config { 52 - u8 clk_polarity; 53 - u8 hs_polarity; 54 - u8 vs_polarity; 55 - u8 fid_polarity; 56 - u8 sog_polarity; 48 + bool clk_polarity; 49 + bool hs_polarity; 50 + bool vs_polarity; 51 + bool fid_polarity; 52 + bool sog_polarity; 57 53 }; 58 54 #endif