File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 14
14
15
15
static DEFINE_MUTEX (profile_lock );
16
16
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
+
17
26
static const char * const profile_names [] = {
18
27
[PLATFORM_PROFILE_LOW_POWER ] = "low-power" ,
19
28
[PLATFORM_PROFILE_COOL ] = "cool" ,
Original file line number Diff line number Diff line change @@ -28,23 +28,12 @@ enum platform_profile_option {
28
28
PLATFORM_PROFILE_LAST , /*must always be last */
29
29
};
30
30
31
- struct platform_profile_handler ;
32
-
33
31
struct platform_profile_ops {
34
32
int (* probe )(void * drvdata , unsigned long * choices );
35
33
int (* profile_get )(struct device * dev , enum platform_profile_option * profile );
36
34
int (* profile_set )(struct device * dev , enum platform_profile_option profile );
37
35
};
38
36
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
-
48
37
struct device * platform_profile_register (struct device * dev , const char * name ,
49
38
void * drvdata ,
50
39
const struct platform_profile_ops * ops );
You can’t perform that action at this time.
0 commit comments