Commit 56f62308 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/tv: Use bools where appropriate

'component_only' is a bool. Initialize it like a bool.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181112170000.27531-7-ville.syrjala@linux.intel.comReviewed-by: default avatarImre Deak <imre.deak@intel.com>
parent 4f503798
...@@ -379,7 +379,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -379,7 +379,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 59940, .refresh = 59940,
.oversample = 8, .oversample = 8,
.component_only = 0, .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */ /* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
.hsync_end = 64, .hblank_end = 124, .hsync_end = 64, .hblank_end = 124,
...@@ -422,7 +422,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -422,7 +422,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 59940, .refresh = 59940,
.oversample = 8, .oversample = 8,
.component_only = 0, .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 4.43MHz */ /* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 4.43MHz */
.hsync_end = 64, .hblank_end = 124, .hsync_end = 64, .hblank_end = 124,
.hblank_start = 836, .htotal = 857, .hblank_start = 836, .htotal = 857,
...@@ -464,7 +464,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -464,7 +464,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 59940, .refresh = 59940,
.oversample = 8, .oversample = 8,
.component_only = 0, .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */ /* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
.hsync_end = 64, .hblank_end = 124, .hsync_end = 64, .hblank_end = 124,
...@@ -507,7 +507,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -507,7 +507,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 59940, .refresh = 59940,
.oversample = 8, .oversample = 8,
.component_only = 0, .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */ /* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
.hsync_end = 64, .hblank_end = 124, .hsync_end = 64, .hblank_end = 124,
...@@ -551,7 +551,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -551,7 +551,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 50000, .refresh = 50000,
.oversample = 8, .oversample = 8,
.component_only = 0, .component_only = false,
.hsync_end = 64, .hblank_end = 128, .hsync_end = 64, .hblank_end = 128,
.hblank_start = 844, .htotal = 863, .hblank_start = 844, .htotal = 863,
...@@ -596,7 +596,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -596,7 +596,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 50000, .refresh = 50000,
.oversample = 8, .oversample = 8,
.component_only = 0, .component_only = false,
.hsync_end = 64, .hblank_end = 142, .hsync_end = 64, .hblank_end = 142,
.hblank_start = 844, .htotal = 863, .hblank_start = 844, .htotal = 863,
...@@ -638,7 +638,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -638,7 +638,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 59940, .refresh = 59940,
.oversample = 4, .oversample = 4,
.component_only = 1, .component_only = true,
.hsync_end = 64, .hblank_end = 122, .hsync_end = 64, .hblank_end = 122,
.hblank_start = 842, .htotal = 857, .hblank_start = 842, .htotal = 857,
...@@ -662,7 +662,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -662,7 +662,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000, .clock = 108000,
.refresh = 50000, .refresh = 50000,
.oversample = 4, .oversample = 4,
.component_only = 1, .component_only = true,
.hsync_end = 64, .hblank_end = 139, .hsync_end = 64, .hblank_end = 139,
.hblank_start = 859, .htotal = 863, .hblank_start = 859, .htotal = 863,
...@@ -686,7 +686,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -686,7 +686,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500, .clock = 148500,
.refresh = 60000, .refresh = 60000,
.oversample = 2, .oversample = 2,
.component_only = 1, .component_only = true,
.hsync_end = 80, .hblank_end = 300, .hsync_end = 80, .hblank_end = 300,
.hblank_start = 1580, .htotal = 1649, .hblank_start = 1580, .htotal = 1649,
...@@ -710,7 +710,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -710,7 +710,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500, .clock = 148500,
.refresh = 50000, .refresh = 50000,
.oversample = 2, .oversample = 2,
.component_only = 1, .component_only = true,
.hsync_end = 80, .hblank_end = 300, .hsync_end = 80, .hblank_end = 300,
.hblank_start = 1580, .htotal = 1979, .hblank_start = 1580, .htotal = 1979,
...@@ -735,7 +735,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -735,7 +735,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500, .clock = 148500,
.refresh = 50000, .refresh = 50000,
.oversample = 2, .oversample = 2,
.component_only = 1, .component_only = true,
.hsync_end = 88, .hblank_end = 235, .hsync_end = 88, .hblank_end = 235,
.hblank_start = 2155, .htotal = 2639, .hblank_start = 2155, .htotal = 2639,
...@@ -761,7 +761,7 @@ static const struct tv_mode tv_modes[] = { ...@@ -761,7 +761,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500, .clock = 148500,
.refresh = 60000, .refresh = 60000,
.oversample = 2, .oversample = 2,
.component_only = 1, .component_only = true,
.hsync_end = 88, .hblank_end = 235, .hsync_end = 88, .hblank_end = 235,
.hblank_start = 2155, .htotal = 2199, .hblank_start = 2155, .htotal = 2199,
......
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