Re: Patch for thinkpad-acpi.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bruce <bruce.ma@xxxxxxxxxxxxx> writes:

> +struct blacklist lenovo_blacklist[] = {
> +  {
> +    .model_s = "Lenovo LM490s",
> +    .nummodel_s = "814YG01",
> +  },


The driver already has a list of LED support per model in the 

  static const struct tpacpi_quirk led_useful_qtable[] __initconst = {}

array.   Why do you duplicate this with lots of new model checking code
instead of just using the code that's already there?

>  static void led_exit(void)
>  {
> +        if (no_led == 1 ) {


The driver already has provisions for signalling that LEDs are
unsupported through the 'led_supported' variable.  Why do you add
another variable, and duplicate testing in every access function?

But I don't think this part is needed at all, as long as you set up the
proper LED map in led_useful_qtable.



Bjørn

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel





[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux