File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
include/linux/platform_data Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -89,17 +89,23 @@ struct emc2305_cdev_data {
89
89
* @hwmon_dev: hwmon device
90
90
* @max_state: maximum cooling state of the cooling device
91
91
* @pwm_num: number of PWM channels
92
+ * @pwm_output_mask: PWM output mask
93
+ * @pwm_polarity_mask: PWM polarity mask
92
94
* @pwm_separate: separate PWM settings for every channel
93
95
* @pwm_min: array of minimum PWM per channel
96
+ * @pwm_freq: array of PWM frequency per channel
94
97
* @cdev_data: array of cooling devices data
95
98
*/
96
99
struct emc2305_data {
97
100
struct i2c_client * client ;
98
101
struct device * hwmon_dev ;
99
102
u8 max_state ;
100
103
u8 pwm_num ;
104
+ u8 pwm_output_mask ;
105
+ u8 pwm_polarity_mask ;
101
106
bool pwm_separate ;
102
107
u8 pwm_min [EMC2305_PWM_MAX ];
108
+ u16 pwm_freq [EMC2305_PWM_MAX ];
103
109
struct emc2305_cdev_data cdev_data [EMC2305_PWM_MAX ];
104
110
};
105
111
Original file line number Diff line number Diff line change 9
9
* struct emc2305_platform_data - EMC2305 driver platform data
10
10
* @max_state: maximum cooling state of the cooling device;
11
11
* @pwm_num: number of active channels;
12
+ * @pwm_output_mask: PWM output mask
13
+ * @pwm_polarity_mask: PWM polarity mask
12
14
* @pwm_separate: separate PWM settings for every channel;
13
15
* @pwm_min: array of minimum PWM per channel;
16
+ * @pwm_freq: array of PWM frequency per channel
14
17
*/
15
18
struct emc2305_platform_data {
16
19
u8 max_state ;
17
20
u8 pwm_num ;
21
+ u8 pwm_output_mask ;
22
+ u8 pwm_polarity_mask ;
18
23
bool pwm_separate ;
19
24
u8 pwm_min [EMC2305_PWM_MAX ];
25
+ u16 pwm_freq [EMC2305_PWM_MAX ];
20
26
};
21
27
22
28
#endif
You can’t perform that action at this time.
0 commit comments