mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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>
This commit is contained in:
committed by
Ilpo Järvinen
parent
d960f14800
commit
249c576f0f
@@ -40,9 +40,9 @@ struct platform_profile_handler {
|
||||
enum platform_profile_option profile);
|
||||
};
|
||||
|
||||
int platform_profile_register(struct platform_profile_handler *pprof);
|
||||
int platform_profile_register(struct platform_profile_handler *pprof, void *drvdata);
|
||||
int platform_profile_remove(struct platform_profile_handler *pprof);
|
||||
int devm_platform_profile_register(struct platform_profile_handler *pprof);
|
||||
int devm_platform_profile_register(struct platform_profile_handler *pprof, void *drvdata);
|
||||
int platform_profile_cycle(void);
|
||||
void platform_profile_notify(struct platform_profile_handler *pprof);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user