24
24
#include "sec-core.h"
25
25
26
26
static const struct mfd_cell s5m8767_devs [] = {
27
- { .name = "s5m8767-pmic" , },
28
- { .name = "s5m-rtc" , },
29
- {
30
- .name = "s5m8767-clk" ,
31
- .of_compatible = "samsung,s5m8767-clk" ,
32
- },
27
+ MFD_CELL_NAME ("s5m8767-pmic" ),
28
+ MFD_CELL_NAME ("s5m-rtc" ),
29
+ MFD_CELL_OF ("s5m8767-clk" , NULL , NULL , 0 , 0 , "samsung,s5m8767-clk" ),
33
30
};
34
31
35
32
static const struct mfd_cell s2dos05_devs [] = {
36
- { . name = "s2dos05-regulator" , } ,
33
+ MFD_CELL_NAME ( "s2dos05-regulator" ) ,
37
34
};
38
35
39
36
static const struct mfd_cell s2mpg10_devs [] = {
@@ -45,53 +42,41 @@ static const struct mfd_cell s2mpg10_devs[] = {
45
42
};
46
43
47
44
static const struct mfd_cell s2mps11_devs [] = {
48
- { .name = "s2mps11-regulator" , },
49
- { .name = "s2mps14-rtc" , },
50
- {
51
- .name = "s2mps11-clk" ,
52
- .of_compatible = "samsung,s2mps11-clk" ,
53
- },
45
+ MFD_CELL_NAME ("s2mps11-regulator" ),
46
+ MFD_CELL_NAME ("s2mps14-rtc" ),
47
+ MFD_CELL_OF ("s2mps11-clk" , NULL , NULL , 0 , 0 , "samsung,s2mps11-clk" ),
54
48
};
55
49
56
50
static const struct mfd_cell s2mps13_devs [] = {
57
- { .name = "s2mps13-regulator" , },
58
- { .name = "s2mps13-rtc" , },
59
- {
60
- .name = "s2mps13-clk" ,
61
- .of_compatible = "samsung,s2mps13-clk" ,
62
- },
51
+ MFD_CELL_NAME ("s2mps13-regulator" ),
52
+ MFD_CELL_NAME ("s2mps13-rtc" ),
53
+ MFD_CELL_OF ("s2mps13-clk" , NULL , NULL , 0 , 0 , "samsung,s2mps13-clk" ),
63
54
};
64
55
65
56
static const struct mfd_cell s2mps14_devs [] = {
66
- { .name = "s2mps14-regulator" , },
67
- { .name = "s2mps14-rtc" , },
68
- {
69
- .name = "s2mps14-clk" ,
70
- .of_compatible = "samsung,s2mps14-clk" ,
71
- },
57
+ MFD_CELL_NAME ("s2mps14-regulator" ),
58
+ MFD_CELL_NAME ("s2mps14-rtc" ),
59
+ MFD_CELL_OF ("s2mps14-clk" , NULL , NULL , 0 , 0 , "samsung,s2mps14-clk" ),
72
60
};
73
61
74
62
static const struct mfd_cell s2mps15_devs [] = {
75
- { .name = "s2mps15-regulator" , },
76
- { .name = "s2mps15-rtc" , },
77
- {
78
- .name = "s2mps13-clk" ,
79
- .of_compatible = "samsung,s2mps13-clk" ,
80
- },
63
+ MFD_CELL_NAME ("s2mps15-regulator" ),
64
+ MFD_CELL_NAME ("s2mps15-rtc" ),
65
+ MFD_CELL_OF ("s2mps13-clk" , NULL , NULL , 0 , 0 , "samsung,s2mps13-clk" ),
81
66
};
82
67
83
68
static const struct mfd_cell s2mpa01_devs [] = {
84
- { . name = "s2mpa01-pmic" , } ,
85
- { . name = "s2mps14-rtc" , } ,
69
+ MFD_CELL_NAME ( "s2mpa01-pmic" ) ,
70
+ MFD_CELL_NAME ( "s2mps14-rtc" ) ,
86
71
};
87
72
88
73
static const struct mfd_cell s2mpu02_devs [] = {
89
- { . name = "s2mpu02-regulator" , } ,
74
+ MFD_CELL_NAME ( "s2mpu02-regulator" ) ,
90
75
};
91
76
92
77
static const struct mfd_cell s2mpu05_devs [] = {
93
- { . name = "s2mpu05-regulator" , } ,
94
- { . name = "s2mps15-rtc" , } ,
78
+ MFD_CELL_NAME ( "s2mpu05-regulator" ) ,
79
+ MFD_CELL_NAME ( "s2mps15-rtc" ) ,
95
80
};
96
81
97
82
static void sec_pmic_dump_rev (struct sec_pmic_dev * sec_pmic )
0 commit comments