diff mbox

UBUNTU: SAUCE (no-up) Quirk for enabling backlight hotkeys on Samsung N510P

Message ID 1333051173-10819-2-git-send-email-brad.figg@canonical.com
State New
Headers show

Commit Message

Brad Figg March 29, 2012, 7:59 p.m. UTC
BugLink: http://bugs.launchpad.net/bugs/875893

This patch is a very small part of a much larger patch that is upstream. I felt
the full patch was too invasive to try to backport.

(partial backport of upstream commit: a979e2e2af7d5b4bb3b20f6a716c627bb23a6753)
Signed-off-by: Brad Figg <brad.figg@canonical.com>
---
 drivers/platform/x86/samsung-laptop.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

Comments

Seth Forshee March 29, 2012, 9:34 p.m. UTC | #1
On Thu, Mar 29, 2012 at 12:59:33PM -0700, Brad Figg wrote:
> BugLink: http://bugs.launchpad.net/bugs/875893
> 
> This patch is a very small part of a much larger patch that is upstream. I felt
> the full patch was too invasive to try to backport.
> 
> (partial backport of upstream commit: a979e2e2af7d5b4bb3b20f6a716c627bb23a6753)
> Signed-off-by: Brad Figg <brad.figg@canonical.com>
> ---
>  drivers/platform/x86/samsung-laptop.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c
> index 09e26bf..7f208fd 100644
> --- a/drivers/platform/x86/samsung-laptop.c
> +++ b/drivers/platform/x86/samsung-laptop.c
> @@ -579,6 +579,16 @@ static struct dmi_system_id __initdata samsung_dmi_table[] = {
>  		.callback = dmi_check_cb,
>  	},
>  	{
> +		.ident = "N150P",
> +		.matches = {
> +			DMI_MATCH(DMI_SYS_VENDOR,
> +					"SAMSUNG ELECTRONICS CO., LTD."),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "N150P"),
> +			DMI_MATCH(DMI_BOARD_NAME, "N150P"),
> +		},
> +		.callback = dmi_check_cb,
> +	},
> +	{
>  		.ident = "X125",
>  		.matches = {
>  			DMI_MATCH(DMI_SYS_VENDOR,

Looks good now, but whomever applies it should fix the subject to read
N150P as well.
diff mbox

Patch

diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c
index 09e26bf..7f208fd 100644
--- a/drivers/platform/x86/samsung-laptop.c
+++ b/drivers/platform/x86/samsung-laptop.c
@@ -579,6 +579,16 @@  static struct dmi_system_id __initdata samsung_dmi_table[] = {
 		.callback = dmi_check_cb,
 	},
 	{
+		.ident = "N150P",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR,
+					"SAMSUNG ELECTRONICS CO., LTD."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "N150P"),
+			DMI_MATCH(DMI_BOARD_NAME, "N150P"),
+		},
+		.callback = dmi_check_cb,
+	},
+	{
 		.ident = "X125",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR,