]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ACPI: platform_profile: Move platform_profile_handler
authorKurt Borja <kuurtb@gmail.com>
Thu, 16 Jan 2025 00:27:18 +0000 (19:27 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 17 Jan 2025 17:16:20 +0000 (19:16 +0200)
platform_profile_handler is now an internal structure. Move it to
platform_profile.c.

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-17-kuurtb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/acpi/platform_profile.c
include/linux/platform_profile.h

index c0701d96c6a940aca54764a8faed2da2aa800608..392ea055cb6eba9d08cbd3ccaa88dcc2355f0ad0 100644 (file)
 
 static DEFINE_MUTEX(profile_lock);
 
+struct platform_profile_handler {
+       const char *name;
+       struct device *dev;
+       struct device class_dev;
+       int minor;
+       unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
+       const struct platform_profile_ops *ops;
+};
+
 static const char * const profile_names[] = {
        [PLATFORM_PROFILE_LOW_POWER] = "low-power",
        [PLATFORM_PROFILE_COOL] = "cool",
index 778d4c661c3c56b95cf8762b89b30fb33dcb2a84..eea1daf85616ade67a5315b13368d509c2d0bd14 100644 (file)
@@ -28,23 +28,12 @@ enum platform_profile_option {
        PLATFORM_PROFILE_LAST, /*must always be last */
 };
 
-struct platform_profile_handler;
-
 struct platform_profile_ops {
        int (*probe)(void *drvdata, unsigned long *choices);
        int (*profile_get)(struct device *dev, enum platform_profile_option *profile);
        int (*profile_set)(struct device *dev, enum platform_profile_option profile);
 };
 
-struct platform_profile_handler {
-       const char *name;
-       struct device *dev;
-       struct device class_dev;
-       int minor;
-       unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
-       const struct platform_profile_ops *ops;
-};
-
 struct device *platform_profile_register(struct device *dev, const char *name,
                                         void *drvdata,
                                         const struct platform_profile_ops *ops);