Re: [PATCH v2 2/2] HID: asus: only support backlight when it's not driven by WMI

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

 



On Thu, May 31, 2018 at 4:43 AM, Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
>> +       depends on ASUS_WMI
>
> I'm not sure it's a good idea.
>
> Rather you may use ifdef inside header which also provides a stub for
> the function. But be careful with corner cases, like ASUS_WMI=m &&
> HID_ASUS=y.

What do you see as wrong with it? The driver already depends on e.g.
LEDS_CLASS for the functionality that it sometimes uses there.

In my opinion the ideal solution to the corner cases you mention is
the Kconfig "depends on" which is exactly what the patch is
proposing...

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



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux