]> Pileus Git - ~andy/linux/blobdiff - include/media/tvp7002.h
Merge tag 'dmaengine-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw...
[~andy/linux] / include / media / tvp7002.h
index ee4353459ef5c02a0910657d39d27800d51717c7..fadb6afe9ef0a003ef8db8c5db3733321b55c744 100644 (file)
 #ifndef _TVP7002_H_
 #define _TVP7002_H_
 
-/* Platform-dependent data
- *
- * clk_polarity:
- *                     0 -> data clocked out on rising edge of DATACLK signal
- *                     1 -> data clocked out on falling edge of DATACLK signal
- * hs_polarity:
- *                     0 -> active low HSYNC output
- *                     1 -> active high HSYNC output
- * sog_polarity:
- *                     0 -> normal operation
- *                     1 -> operation with polarity inverted
- * vs_polarity:
- *                     0 -> active low VSYNC output
- *                     1 -> active high VSYNC output
- * fid_polarity:
- *                     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.
+#define TVP7002_MODULE_NAME "tvp7002"
+
+/**
+ * struct tvp7002_config - Platform dependent data
+ *@clk_polarity: Clock polarity
+ *             0 - Data clocked out on rising edge of DATACLK signal
+ *             1 - Data clocked out on falling edge of DATACLK signal
+ *@hs_polarity:  HSYNC polarity
+ *             0 - Active low HSYNC output, 1 - Active high HSYNC output
+ *@vs_polarity: VSYNC Polarity
+ *             0 - Active low VSYNC output, 1 - Active high VSYNC output
+ *@fid_polarity: Active-high Field ID polarity.
+ *             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.
+ *@sog_polarity: Active high Sync on Green output polarity.
+ *             0 - Normal operation, 1 - Operation with polarity inverted
  */
 struct tvp7002_config {
-       u8 clk_polarity;
-       u8 hs_polarity;
-       u8 vs_polarity;
-       u8 fid_polarity;
-       u8 sog_polarity;
+       bool clk_polarity;
+       bool hs_polarity;
+       bool vs_polarity;
+       bool fid_polarity;
+       bool sog_polarity;
 };
 #endif