public inbox for dri-devel@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 06/15] drm/i915/tv: Use bools where appropriate
Date: Tue, 22 Jan 2019 15:07:38 +0200	[thread overview]
Message-ID: <20190122130738.GI5527@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20181112170000.27531-7-ville.syrjala@linux.intel.com>

On Mon, Nov 12, 2018 at 06:59:50PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> 'component_only' is a bool. Initialize it like a bool.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Imre Deak <imre.deak@intel.com>

> ---
>  drivers/gpu/drm/i915/intel_tv.c | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
> index 96257b29d07c..72de154b8627 100644
> --- a/drivers/gpu/drm/i915/intel_tv.c
> +++ b/drivers/gpu/drm/i915/intel_tv.c
> @@ -380,7 +380,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,
> @@ -423,7 +423,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,
> @@ -465,7 +465,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,
> @@ -508,7 +508,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,
> @@ -552,7 +552,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,
> @@ -597,7 +597,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,
> @@ -639,7 +639,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,
> @@ -663,7 +663,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,
> @@ -687,7 +687,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,
> @@ -711,7 +711,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,
> @@ -736,7 +736,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,
> @@ -762,7 +762,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,
> -- 
> 2.18.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2019-01-22 13:07 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-12 16:59 [PATCH 00/15] drm/i915: Fix TV encoder support Ville Syrjala
2018-11-12 16:59 ` [PATCH 01/15] drm/vblank: Allow dynamic per-crtc max_vblank_count Ville Syrjala
2018-11-21  9:27   ` Daniel Vetter
2018-11-21 11:37     ` Ville Syrjälä
2018-11-21 15:19       ` Daniel Vetter
2018-11-21 16:16         ` Ville Syrjälä
2018-11-21 16:22           ` Daniel Vetter
2018-11-21 16:46             ` Ville Syrjälä
2018-11-22  8:53               ` Daniel Vetter
2018-11-27 18:20   ` [PATCH v2 " Ville Syrjala
2018-11-27 19:42     ` Daniel Vetter
2018-11-12 16:59 ` [PATCH 02/15] drm/i915: Don't try to use the hardware frame counter with i965gm TV output Ville Syrjala
2018-11-27 18:21   ` [PATCH v2 " Ville Syrjala
2018-11-27 20:05   ` [PATCH v3 " Ville Syrjala
2019-01-22 12:51     ` Imre Deak
2018-11-12 16:59 ` [PATCH 03/15] drm/i915/tv: Fix interlaced ysize calculation Ville Syrjala
2019-01-22 12:54   ` Imre Deak
2018-11-12 16:59 ` [PATCH 04/15] drm/i915/tv: Fix tv mode clocks Ville Syrjala
2019-01-22 12:56   ` Imre Deak
2018-11-12 16:59 ` [PATCH 05/15] drm/i915/tv: Store the TV oversampling factor in the TV mode Ville Syrjala
2019-01-22 13:03   ` Imre Deak
2018-11-12 16:59 ` [PATCH 06/15] drm/i915/tv: Use bools where appropriate Ville Syrjala
2019-01-22 13:07   ` Imre Deak [this message]
2018-11-12 16:59 ` [PATCH 07/15] drm/i915/tv: Nuke silly 0 initialzation of xpos/ypos Ville Syrjala
2019-01-22 13:09   ` Imre Deak
2018-11-12 16:59 ` [PATCH 07/15] drm/i915/tv: Nuke silly 0 inittialization " Ville Syrjala
2018-11-12 16:59 ` [PATCH 08/15] drm/i915/tv: Deobfuscate preferred mode selection Ville Syrjala
2019-01-22 14:43   ` [Intel-gfx] " Imre Deak
2018-11-12 16:59 ` [PATCH 09/15] drm/i915/tv: Use drm_mode_set_name() to name TV modes Ville Syrjala
2019-01-22 14:45   ` Imre Deak
2018-11-12 16:59 ` [PATCH 10/15] drm/i915/tv: Make TV mode autoselection actually useable Ville Syrjala
2019-01-22 14:54   ` Imre Deak
2018-11-12 16:59 ` [PATCH 11/15] drm/i915/tv: Nuke reported_modes[] Ville Syrjala
2019-01-22 15:08   ` Imre Deak
2018-11-12 16:59 ` [PATCH 12/15] drm/i915/tv: Add 1080p30/50/60 TV modes Ville Syrjala
2019-01-22 15:09   ` [Intel-gfx] " Imre Deak
2018-11-12 16:59 ` [PATCH 13/15] drm/i915/tv: Generate better pipe timings for TV encoder Ville Syrjala
2019-01-22 17:22   ` Imre Deak
2019-01-22 17:34     ` Ville Syrjälä
2019-01-23 10:30       ` Imre Deak
2018-11-12 16:59 ` [PATCH 14/15] drm/i915/tv: Fix >1024 modes on gen3 Ville Syrjala
2019-01-23 13:49   ` Imre Deak
2019-01-23 16:38     ` [Intel-gfx] " Ville Syrjälä
2019-01-24 10:40       ` Imre Deak
2019-01-25 18:11     ` [Intel-gfx] " Ville Syrjälä
2018-11-12 17:00 ` [PATCH 15/15] drm/i915/tv: Filter out >1024 wide modes that would need vertical scaling " Ville Syrjala
2019-01-23 13:49   ` Imre Deak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190122130738.GI5527@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox