Lines Matching +full:attribute +full:- +full:sets
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
11 #define NUM_TEMP 12 /* Max number of temp attribute sets w/ limits*/
12 #define NUM_TEMP_FIXED 6 /* Max number of fixed temp attribute sets */
125 u8 pwm_mode[NUM_FAN]; /* 0->DC variable voltage,
126 * 1->PWM variable duty cycle
129 /* 0->off
130 * 1->manual
131 * 2->thermal cruise mode (also called SmartFan I)
132 * 3->fan speed cruise mode
133 * 4->SmartFan III
134 * 5->enhanced variable thermal cruise (SmartFan IV)
158 u8 weight_temp[3][NUM_FAN]; /* 0->temp_step, 1->temp_step_tol,
159 * 2->temp_base
181 /* driver-specific (platform, i2c) initialization hook and data */
189 int ret = regmap_read(data->regmap, reg, &tmp); in nct6775_read_value()
198 return regmap_write(data->regmap, reg, value); in nct6775_write_value()
219 static inline umode_t nct6775_attr_mode(struct nct6775_data *data, struct attribute *attr) in nct6775_attr_mode()
221 return data->read_only ? (attr->mode & ~0222) : attr->mode; in nct6775_attr_mode()
227 /* Need to leave a NULL terminator at the end of data->groups */ in nct6775_add_attr_group()
228 if (data->num_groups == ARRAY_SIZE(data->groups) - 1) in nct6775_add_attr_group()
229 return -ENOBUFS; in nct6775_add_attr_group()
231 data->groups[data->num_groups++] = group; in nct6775_add_attr_group()
244 * ALARM_BITS and BEEP_BITS store bit-index for the mask of the registers
245 * loaded into data->alarm and data->beep.
249 * Set value to -1 to disable the visibility of that '*_alarm' attribute and