Am 19.11.24 um 17:43 schrieb Werner Sembach:
Hi, another quick learning question: Why does the acpi_device struct have a driver_data member in addition to the driver_data member of the nested dev? What should each driver_data member be used for? In contrast platform_device and wmi_device only have the dev.driver_data and not the top level driver data. Kind regards, Werner Sembach
Hi, from my point of view the driver_data member inside the acpi_device struct is deprecated. You should use dev_set/get_drvdata() instead. Other than that the semantics are the same (i think). Thanks, Armin Wolf