Skip to contentSkip to conversation

acpi: video: fix acpi_backlight=video

PATCH In review [email protected] 2 participants 4 messages May 24, 2010 – May 28, 2010 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: video: fix acpi_backlight=video

From: Kamal Mostafa <[email protected]>

Make "acpi_backlight=video" param enable ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO as intended, instead of incorrectly enabling video output switching.

Addresses http://bugs.launchpad.net/bugs/573120

---

 drivers/acpi/video_detect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/video_detect.c renamed from drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video +1 -1
diff -puN drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video drivers/acpi/video_detect.c
@@ -266,7 +266,7 @@ static int __init acpi_display_output(ch
 				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VENDOR;
 		if (!strcmp("video", str))
 			acpi_video_support |=
-				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VIDEO;
+				ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO;
 	}
 	return 1;
 }

_

reviewer
#1 lore raw

yes, it is in acpi-test and linux-next, do you pull those into mm still?

thanks,
Len Brown, Intel Open Source Technology Center

Quoted 39 lines · On Mon, 24 May 2010, [email protected] wrote:

From: Kamal Mostafa <[email protected]>

Make "acpi_backlight=video" param enable ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO as intended, instead of incorrectly enabling video output switching.

Addresses http://bugs.launchpad.net/bugs/573120

---

 drivers/acpi/video_detect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video drivers/acpi/video_detect.c

drivers/acpi/video_detect.c renamed from drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video +1 -1
@@ -266,7 +266,7 @@ static int __init acpi_display_output(ch
 				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VENDOR;
 		if (!strcmp("video", str))
 			acpi_video_support |=
-				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VIDEO;
+				ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO;
 	}
 	return 1;
 }

_
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 24 lines · On Mon, 24 May 2010 20:53:51 -0400 (EDT) Len Brown <[email protected]> wrote:
Quoted 21 lines · On Mon, 24 May 2010, [email protected] wrote:

From: Kamal Mostafa <[email protected]>

Make "acpi_backlight=video" param enable ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO as intended, instead of incorrectly enabling video output switching.

Addresses http://bugs.launchpad.net/bugs/573120

---

 drivers/acpi/video_detect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

drivers/acpi/video_detect.c static int __init acpi_display_output(ch · line 272

Quoted 12 lines

diff -puN drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video drivers/acpi/video_detect.c

drivers/acpi/video_detect.c renamed from drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video +1 -1
@@ -266,7 +266,7 @@ static int __init acpi_display_output(ch
 				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VENDOR;
 		if (!strcmp("video", str))
 			acpi_video_support |=
-				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VIDEO;
+				ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO;
 	}
 	return 1;
 }

yes, it is in acpi-test and linux-next, do you pull those into mm still?

(top-posting repaired!)

linux-next changes acpi_backlight(). In my tree patch(1) decided to migrate the hunk into acpi_display_output().

Please check that acpi_display_output() didn't need the same change.

I'll drop the patch, thanks.

reviewer
#3 lore raw
Quoted 16 lines
Quoted 12 lines

drivers/acpi/video_detect.c static int __init acpi_display_output(ch · line 271

Quoted 12 lines

diff -puN drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video drivers/acpi/video_detect.c

drivers/acpi/video_detect.c renamed from drivers/acpi/video_detect.c~acpi-video-fix-acpi_backlight=video +1 -1
@@ -266,7 +266,7 @@ static int __init acpi_display_output(ch
 				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VENDOR;
 		if (!strcmp("video", str))
 			acpi_video_support |=
-				ACPI_VIDEO_OUTPUT_SWITCHING_FORCE_VIDEO;
+				ACPI_VIDEO_BACKLIGHT_FORCE_VIDEO;
 	}
 	return 1;

linux-next changes acpi_backlight(). In my tree patch(1) decided to migrate the hunk into acpi_display_output().

I think the hunk got mis-relocated in your tree, and that the correct patch is included in the acpi tree.

Quoted 1 line

Please check that acpi_display_output() didn't need the same change.

It looks okay.

Quoted 1 line

I'll drop the patch, thanks.

thanks,
-Len