diff options
| author | Kurt Borja <kuurtb@gmail.com> | 2025-01-16 03:27:04 +0300 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2025-01-16 18:26:25 +0300 |
| commit | 249c576f0f9d0556cb7473b8a437b30239afbd16 (patch) | |
| tree | 32144fa48c6617078a540b46df5f899e2c7ef084 /rust/helpers/build_bug.c | |
| parent | d960f14800b581d79e1c3df4db524d9d4b3aac9a (diff) | |
| download | linux-249c576f0f9d0556cb7473b8a437b30239afbd16.tar.xz | |
ACPI: platform_profile: Let drivers set drvdata to the class device
Add *drvdata to platform_profile_register() signature and assign it to
the class device.
While at it, pass specific driver state as drvdata to replace uses of
container_of() with dev_get_drvdata().
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20250116002721.75592-3-kuurtb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
