public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: joeyli <jlee@suse.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: lenb@kernel.org, linux-acpi@vger.kernel.org,
	Thomas Renninger <trenn@suse.de>
Subject: Re: [PATCH] video: add quirk table for video backlight vendor mode
Date: Tue, 20 Mar 2012 11:49:19 +0800	[thread overview]
Message-ID: <1332215359.10557.289.camel@linux-s257.site> (raw)
In-Reply-To: <20120319133129.GA413@srcf.ucam.org>

Hi Matthew, 

於 一,2012-03-19 於 13:31 +0000,Matthew Garrett 提到:
> On Mon, Mar 19, 2012 at 02:03:47PM +0800, Lee, Chun-Yi wrote:
> 
> > diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
> > index f3f0fe7..acb15d6 100644
> > --- a/drivers/acpi/video_detect.c
> > +++ b/drivers/acpi/video_detect.c
> > @@ -132,6 +132,32 @@ find_video(acpi_handle handle, u32 lvl, void *context, void **rv)
> >  	return AE_OK;
> >  }
> >  
> > +static int video_set_backlight_vendor(const struct dmi_system_id *d)
> > +{
> > +	acpi_video_support |= ACPI_VIDEO_BACKLIGHT_DMI_VENDOR;
> > +	return 0;
> > +}
> > +
> > +static const struct dmi_system_id video_vendor_dmi_table[] = {
> > +	{
> > +	 .callback = video_set_backlight_vendor,
> > +	 .ident = "Acer Aspire 4736",
> > +	 .matches = {
> > +		DMI_MATCH(DMI_BOARD_VENDOR, "Acer"),
> > +		DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 4736"),
> > +		},
> > +	},
> > +	{
> > +	 .callback = video_set_backlight_vendor,
> > +	 .ident = "Acer TravelMate 4750",
> > +	 .matches = {
> > +		DMI_MATCH(DMI_BOARD_VENDOR, "Acer"),
> > +		DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 4750"),
> > +		},
> > +	},
> > +	{}
> > +};
> > +
> 
> I think it would be neater to put this in the Acer driver and have it 
> call unregister_acpi_video().
> 

Thanks for your review and suggestion.
I will send out a new patch for acer-wmi.


Thanks a lot!
Joey Lee


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

      reply	other threads:[~2012-03-20  3:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19  6:03 [PATCH] video: add quirk table for video backlight vendor mode Lee, Chun-Yi
2012-03-19 13:31 ` Matthew Garrett
2012-03-20  3:49   ` joeyli [this message]

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=1332215359.10557.289.camel@linux-s257.site \
    --to=jlee@suse.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=trenn@suse.de \
    /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