Re: [PATCH 1/1] asus-wireless: Use the correct HSWC parameter for each HID

From: Andy Shevchenko
Date: Sat Feb 04 2017 - 10:02:41 EST


On Wed, Feb 1, 2017 at 2:20 PM, JoÃo Paulo Rechi Vita <jprvita@xxxxxxxxx> wrote:
> On 27 January 2017 at 10:26, Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote:
>> On Thu, Jan 26, 2017 at 5:00 PM, JoÃo Paulo Rechi Vita
>> <jprvita@xxxxxxxxx> wrote:

>>> +static const struct acpi_device_id device_ids[] = {
>>> + {"ATK4001", 0},
>>> + {"ATK4002", 0},
>>
>> ...and use it as a parameter here.
>>
>
> I'm not exactly sure how to do that, as driver_data is a
> kernel_ulong_t. Can you please elaborate a bit more?

{"ATK4001", (kernel_ulong_t)atk4001_id_params},

Similar for the other one.

--
With Best Regards,
Andy Shevchenko