Skip to content

Commit 6ef3389

Browse files
kuu-rtij-intel
authored andcommitted
ACPI: platform_profile: Move platform_profile_handler
platform_profile_handler is now an internal structure. Move it to platform_profile.c. Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Kurt Borja <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Tested-by: Mark Pearson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 07f531b commit 6ef3389

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

drivers/acpi/platform_profile.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414

1515
static DEFINE_MUTEX(profile_lock);
1616

17+
struct platform_profile_handler {
18+
const char *name;
19+
struct device *dev;
20+
struct device class_dev;
21+
int minor;
22+
unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
23+
const struct platform_profile_ops *ops;
24+
};
25+
1726
static const char * const profile_names[] = {
1827
[PLATFORM_PROFILE_LOW_POWER] = "low-power",
1928
[PLATFORM_PROFILE_COOL] = "cool",

include/linux/platform_profile.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,12 @@ enum platform_profile_option {
2828
PLATFORM_PROFILE_LAST, /*must always be last */
2929
};
3030

31-
struct platform_profile_handler;
32-
3331
struct platform_profile_ops {
3432
int (*probe)(void *drvdata, unsigned long *choices);
3533
int (*profile_get)(struct device *dev, enum platform_profile_option *profile);
3634
int (*profile_set)(struct device *dev, enum platform_profile_option profile);
3735
};
3836

39-
struct platform_profile_handler {
40-
const char *name;
41-
struct device *dev;
42-
struct device class_dev;
43-
int minor;
44-
unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
45-
const struct platform_profile_ops *ops;
46-
};
47-
4837
struct device *platform_profile_register(struct device *dev, const char *name,
4938
void *drvdata,
5039
const struct platform_profile_ops *ops);

0 commit comments

Comments
 (0)