Re: acpi_device->driver_data vs acpi_device->dev.driver_data

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

 




Am 21.11.24 um 22:53 schrieb Armin Wolf:
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, will do

Kind regards,

Werner


Thanks,
Armin Wolf





[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux