Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19ec9305 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent abc0fd73
Loading
Loading
Loading
Loading
+20 −24
Original line number Original line Diff line number Diff line
@@ -28,31 +28,27 @@


#define TVP7002_MODULE_NAME "tvp7002"
#define TVP7002_MODULE_NAME "tvp7002"


/* Platform-dependent data
/**
 *
 * struct tvp7002_config - Platform dependent data
 * clk_polarity:
 *@clk_polarity: Clock polarity
 * 			0 -> data clocked out on rising edge of DATACLK signal
 *		0 - Data clocked out on rising edge of DATACLK signal
 * 			1 -> data clocked out on falling edge of DATACLK signal
 *		1 - Data clocked out on falling edge of DATACLK signal
 * hs_polarity:
 *@hs_polarity:  HSYNC polarity
 * 			0 -> active low HSYNC output
 *		0 - Active low HSYNC output, 1 - Active high HSYNC output
 * 			1 -> active high HSYNC output
 *@vs_polarity: VSYNC Polarity
 * sog_polarity:
 *		0 - Active low VSYNC output, 1 - Active high VSYNC output
 * 			0 -> normal operation
 *@fid_polarity: Active-high Field ID polarity.
 * 			1 -> operation with polarity inverted
 *		0 - The field ID output is set to logic 1 for an odd field
 * vs_polarity:
 *		    (field 1) and set to logic 0 for an even field (field 0).
 * 			0 -> active low VSYNC output
 *		1 - Operation with polarity inverted.
 * 			1 -> active high VSYNC output
 *@sog_polarity: Active high Sync on Green output polarity.
 * fid_polarity:
 *		0 - Normal operation, 1 - Operation with polarity inverted
 *			0 -> the field ID output is set to logic 1 for an odd
 *			     field (field 1) and set to logic 0 for an even
 *			     field (field 0).
 *			1 -> operation with polarity inverted.
 */
 */
struct tvp7002_config {
struct tvp7002_config {
	u8 clk_polarity;
	bool clk_polarity;
	u8 hs_polarity;
	bool hs_polarity;
	u8 vs_polarity;
	bool vs_polarity;
	u8 fid_polarity;
	bool fid_polarity;
	u8 sog_polarity;
	bool sog_polarity;
};
};
#endif
#endif