mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RESEND/PATCH] acpi: video: remove unused code
@ 2013-08-22 18:31 Felipe Contreras
  2013-08-22 21:38 ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Contreras @ 2013-08-22 18:31 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-acpi, Rafael J. Wysocki, Len Brown, Zhang Rui, Felipe Contreras

_BCM_use_index and _BCL_use_index are never used and probably never will.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 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;
 
-- 
1.8.3.269.g65753d8


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RESEND/PATCH] acpi: video: remove unused code
  2013-08-22 21:38 ` Rafael J. Wysocki
@ 2013-08-22 21:35   ` Felipe Contreras
  0 siblings, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2013-08-22 21:35 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux Kernel Mailing List, ACPI Devel Maling List, Len Brown, Zhang Rui

On Thu, Aug 22, 2013 at 4:38 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> 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.

Ah, I thought the lack of reply meant it wasn't picked.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RESEND/PATCH] acpi: video: remove unused code
  2013-08-22 18:31 [RESEND/PATCH] acpi: video: remove unused code Felipe Contreras
@ 2013-08-22 21:38 ` Rafael J. Wysocki
  2013-08-22 21:35   ` Felipe Contreras
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2013-08-22 21:38 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: linux-kernel, linux-acpi, Len Brown, Zhang Rui

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-22 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-22 18:31 [RESEND/PATCH] acpi: video: remove unused code Felipe Contreras
2013-08-22 21:38 ` Rafael J. Wysocki
2013-08-22 21:35   ` Felipe Contreras

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®