temp_type
int temp_type[DELL_SMM_NO_TEMP];
data->temp_type[i] = i8k_get_temp_type(data, i);
if (data->temp_type[i] < 0)
if (data->temp_type[i] >= ARRAY_SIZE(temp_labels))
data->temp_type[i] = ARRAY_SIZE(temp_labels) - 1;
if (data->temp_type[channel] >= 0 || _i8k_get_temp(data, channel) >= 0)
if (data->temp_type[channel] >= 0)
*str = temp_labels[data->temp_type[channel]];
u8 temp_type[4];
data->temp_type[1] = (reg & 0x02) ? 2 : 4;
data->temp_type[2] = (reg & 0x04) ? 2 : 4;
data->temp_type[3] = (reg & 0x08) ? 2 : 4;
return sprintf(buf, "%d\n", data->temp_type[nr]);
SENSOR_TEMPLATE(temp_type, "temp%d_type", S_IRUGO, show_temp_type, NULL, 0);
return sysfs_emit(buf, "%d\n", (int)data->temp_type[nr]);
data->temp_type[nr] = val;
SENSOR_TEMPLATE(temp_type, "temp%d_type", 0644, show_temp_type, store_temp_type, 0);
data->temp_type[i]
data->temp_type[i] = 4;
u8 temp_type[NUM_TEMP_FIXED];
static SENSOR_DEVICE_ATTR_RW(temp1_type, temp_type, 0);
static SENSOR_DEVICE_ATTR_RW(temp2_type, temp_type, 1);
static SENSOR_DEVICE_ATTR_RW(temp3_type, temp_type, 2);
data->temp_type[nr] = inb(iobase + PC87427_REG_TEMP_TYPE);
u8 temp_type[6]; /* register values */
return sprintf(buf, "%u\n", temp_type_from_reg(data->temp_type[nr]));
static SENSOR_DEVICE_ATTR_RO(temp1_type, temp_type, 0);
static SENSOR_DEVICE_ATTR_RO(temp2_type, temp_type, 1);
static SENSOR_DEVICE_ATTR_RO(temp3_type, temp_type, 2);
static SENSOR_DEVICE_ATTR_RO(temp4_type, temp_type, 3);
static SENSOR_DEVICE_ATTR_RO(temp5_type, temp_type, 4);
static SENSOR_DEVICE_ATTR_RO(temp6_type, temp_type, 5);
data->temp_type[i] = 6;
data->temp_type[i] = 5;
data->temp_type[i] = (diode & (0x10 << i)) ? 1 : 3;
data->temp_type[i] = 4; /* thermistor */
*val = (int)data->temp_type[channel];
u8 temp_type[3];
static SENSOR_DEVICE_ATTR_RW(temp1_type, temp_type, 0);
static SENSOR_DEVICE_ATTR_RW(temp2_type, temp_type, 1);
static SENSOR_DEVICE_ATTR_RW(temp3_type, temp_type, 2);
u8 temp_type[2];
unsigned temp_type:1; /* TINT or TBAT */
info->temp_type = PM860X_TEMP_TBAT;
info->temp_type = PM860X_TEMP_TINT;
if (info->temp_type == PM860X_TEMP_TINT)
info->temp_type = PM860X_TEMP_TBAT;
info->temp_type = PM860X_TEMP_TINT;
if (info->temp_type == PM860X_TEMP_TINT) {
enum page_type type, enum temp_type temp)
enum temp_type temp;
struct folio *folio, enum temp_type temp)
enum temp_type temp;
enum temp_type temp;
enum temp_type temp;
enum temp_type temp; /* contains HOT/WARM/COLD */
enum temp_type f2fs_get_segment_temp(struct f2fs_sb_info *sbi,
enum page_type type, enum temp_type temp);
enum page_type type, enum temp_type temp);
enum temp_type temp = f2fs_get_segment_temp(sbi, type);
enum page_type type, enum temp_type temp)
enum page_type type, enum temp_type temp)
enum temp_type f2fs_get_segment_temp(struct f2fs_sb_info *sbi,
enum temp_type temp = COLD;