mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	Len Brown <lenb@kernel.org>, Zhang Rui <rui.zhang@intel.com>
Subject: Re: [RESEND/PATCH] acpi: video: remove unused code
Date: Thu, 22 Aug 2013 23:38:01 +0200	[thread overview]
Message-ID: <1808554.Og9bqVFP8Z@vostro.rjw.lan> (raw)
In-Reply-To: <1377196271-20427-1-git-send-email-felipe.contreras@gmail.com>

On Thursday, August 22, 2013 01:31:11 PM Felipe Contreras wrote:
> _BCM_use_index and _BCL_use_index are never used and probably never will.
> 
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

I have this patch in the linux-next branch, although under a different subject.

Thanks,
Rafael


> ---
>  drivers/acpi/video.c | 12 ------------
>  1 file changed, 12 deletions(-)
> 
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index e1284b8..e6be27e 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -185,8 +185,6 @@ struct acpi_video_device_cap {
>  struct acpi_video_brightness_flags {
>  	u8 _BCL_no_ac_battery_levels:1;	/* no AC/Battery levels in _BCL */
>  	u8 _BCL_reversed:1;		/* _BCL package is in a reversed order*/
> -	u8 _BCL_use_index:1;		/* levels in _BCL are index values */
> -	u8 _BCM_use_index:1;		/* input of _BCM is an index value */
>  	u8 _BQC_use_index:1;		/* _BQC returns an index value */
>  };
>  
> @@ -806,16 +804,6 @@ acpi_video_init_brightness(struct acpi_video_device *device)
>  	br->count = count;
>  	device->brightness = br;
>  
> -	/* Check the input/output of _BQC/_BCL/_BCM */
> -	if ((max_level < 100) && (max_level <= (count - 2)))
> -		br->flags._BCL_use_index = 1;
> -
> -	/*
> -	 * _BCM is always consistent with _BCL,
> -	 * at least for all the laptops we have ever seen.
> -	 */
> -	br->flags._BCM_use_index = br->flags._BCL_use_index;
> -
>  	/* _BQC uses INDEX while _BCL uses VALUE in some laptops */
>  	br->curr = level = max_level;
>  
> 
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

  reply	other threads:[~2013-08-22 21:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-22 18:31 Felipe Contreras
2013-08-22 21:38 ` Rafael J. Wysocki [this message]
2013-08-22 21:35   ` Felipe Contreras

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=1808554.Og9bqVFP8Z@vostro.rjw.lan \
    --to=rjw@sisk.pl \
    --cc=felipe.contreras@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rui.zhang@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

all inboxes | Powered by JetHome®