OSDN Git Service

drm/i915/tv: Use bools where appropriate
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 12 Nov 2018 16:59:50 +0000 (18:59 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Jan 2019 16:50:24 +0000 (18:50 +0200)
'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>
drivers/gpu/drm/i915/intel_tv.c

index 3e3eee7..0536077 100644 (file)
@@ -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,