aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_tv.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-11-12 18:59:50 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-01-25 18:50:24 +0200
commit56f6230811818a9dc659ffbfb9f954b2bed25819 (patch)
tree87858dbc47e1b667f374db792a2a92c65d7eb498 /drivers/gpu/drm/i915/intel_tv.c
parentdrm/i915/tv: Store the TV oversampling factor in the TV mode (diff)
downloadlinux-dev-56f6230811818a9dc659ffbfb9f954b2bed25819.tar.xz
linux-dev-56f6230811818a9dc659ffbfb9f954b2bed25819.zip
drm/i915/tv: Use bools where appropriate
'component_only' is a bool. Initialize it like a bool. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181112170000.27531-7-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_tv.c')
-rw-r--r--drivers/gpu/drm/i915/intel_tv.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
index 3e3eee77296a..0536077cc955 100644
--- a/drivers/gpu/drm/i915/intel_tv.c
+++ b/drivers/gpu/drm/i915/intel_tv.c
@@ -379,7 +379,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 59940,
.oversample = 8,
- .component_only = 0,
+ .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
.hsync_end = 64, .hblank_end = 124,
@@ -422,7 +422,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 59940,
.oversample = 8,
- .component_only = 0,
+ .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 4.43MHz */
.hsync_end = 64, .hblank_end = 124,
.hblank_start = 836, .htotal = 857,
@@ -464,7 +464,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 59940,
.oversample = 8,
- .component_only = 0,
+ .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
.hsync_end = 64, .hblank_end = 124,
@@ -507,7 +507,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 59940,
.oversample = 8,
- .component_only = 0,
+ .component_only = false,
/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
.hsync_end = 64, .hblank_end = 124,
@@ -551,7 +551,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 50000,
.oversample = 8,
- .component_only = 0,
+ .component_only = false,
.hsync_end = 64, .hblank_end = 128,
.hblank_start = 844, .htotal = 863,
@@ -596,7 +596,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 50000,
.oversample = 8,
- .component_only = 0,
+ .component_only = false,
.hsync_end = 64, .hblank_end = 142,
.hblank_start = 844, .htotal = 863,
@@ -638,7 +638,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 59940,
.oversample = 4,
- .component_only = 1,
+ .component_only = true,
.hsync_end = 64, .hblank_end = 122,
.hblank_start = 842, .htotal = 857,
@@ -662,7 +662,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 108000,
.refresh = 50000,
.oversample = 4,
- .component_only = 1,
+ .component_only = true,
.hsync_end = 64, .hblank_end = 139,
.hblank_start = 859, .htotal = 863,
@@ -686,7 +686,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500,
.refresh = 60000,
.oversample = 2,
- .component_only = 1,
+ .component_only = true,
.hsync_end = 80, .hblank_end = 300,
.hblank_start = 1580, .htotal = 1649,
@@ -710,7 +710,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500,
.refresh = 50000,
.oversample = 2,
- .component_only = 1,
+ .component_only = true,
.hsync_end = 80, .hblank_end = 300,
.hblank_start = 1580, .htotal = 1979,
@@ -735,7 +735,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500,
.refresh = 50000,
.oversample = 2,
- .component_only = 1,
+ .component_only = true,
.hsync_end = 88, .hblank_end = 235,
.hblank_start = 2155, .htotal = 2639,
@@ -761,7 +761,7 @@ static const struct tv_mode tv_modes[] = {
.clock = 148500,
.refresh = 60000,
.oversample = 2,
- .component_only = 1,
+ .component_only = true,
.hsync_end = 88, .hblank_end = 235,
.hblank_start = 2155, .htotal = 2199,