Re: [PATCH 3/6] platform/chrome: cros_ec_lpc: Pass driver_data in static variable

From: Tzung-Bi Shih
Date: Mon May 20 2024 - 05:46:56 EST


On Wed, May 15, 2024 at 06:56:28AM +0100, Ben Walsh wrote:
> The module init passed extra data to the driver via the driver_data of
> a new platform device. But when an ACPI device already existed, no
> platform device was created, so this extra data wasn't passed to the
> driver.
>
> Stop using the driver_data and use a static variable instead.

Could it be possible to put the driver data in the acpi_device_id and
somewhere calls acpi_device_get_match_data()?