Home
last modified time | relevance | path

Searched refs:diode (Results 1 – 7 of 7) sorted by relevance

/drivers/iio/temperature/
Dltc2983.c568 struct ltc2983_diode *diode = to_diode(sensor); in ltc2983_diode_assign_chan() local
571 chan_val = LTC2983_DIODE_CFG(diode->sensor_config); in ltc2983_diode_assign_chan()
572 chan_val |= LTC2983_DIODE_EXC_CURRENT(diode->excitation_current); in ltc2983_diode_assign_chan()
573 chan_val |= LTC2983_DIODE_IDEAL_FACTOR(diode->ideal_factor_value); in ltc2983_diode_assign_chan()
1014 struct ltc2983_diode *diode; in ltc2983_diode_new() local
1018 diode = devm_kzalloc(&st->spi->dev, sizeof(*diode), GFP_KERNEL); in ltc2983_diode_new()
1019 if (!diode) in ltc2983_diode_new()
1023 diode->sensor_config = LTC2983_DIODE_SGL(1); in ltc2983_diode_new()
1026 diode->sensor_config |= LTC2983_DIODE_3_CONV_CYCLE(1); in ltc2983_diode_new()
1029 diode->sensor_config |= LTC2983_DIODE_AVERAGE_ON(1); in ltc2983_diode_new()
[all …]
/drivers/rtc/
Drtc-abx80x.c561 const char *diode; in abx80x_dt_trickle_cfg() local
566 ret = of_property_read_string(np, "abracon,tc-diode", &diode); in abx80x_dt_trickle_cfg()
570 if (!strcmp(diode, "standard")) { in abx80x_dt_trickle_cfg()
572 } else if (!strcmp(diode, "schottky")) { in abx80x_dt_trickle_cfg()
575 dev_dbg(&client->dev, "Invalid tc-diode value: %s\n", diode); in abx80x_dt_trickle_cfg()
Drtc-ds1307.c530 static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_ds1339() argument
532 u8 setup = (diode) ? DS1307_TRICKLE_CHARGER_DIODE : in do_trickle_setup_ds1339()
555 static u8 do_trickle_setup_rx8130(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_rx8130() argument
559 if (diode) in do_trickle_setup_rx8130()
1340 bool diode = chip->charge_default; in ds1307_trickle_init() local
1356 diode = false; in ds1307_trickle_init()
1359 diode = true; in ds1307_trickle_init()
1368 diode = false; in ds1307_trickle_init()
1371 return chip->do_trickle_setup(ds1307, ohms, diode); in ds1307_trickle_init()
/drivers/hwmon/
Dw83627ehf.c1223 u8 tmp, diode; in w83627ehf_init_device() local
1253 diode = w83627ehf_read_value(data, W83627EHF_REG_DIODE); in w83627ehf_init_device()
1256 diode = 0x00; in w83627ehf_init_device()
1259 diode = 0x70; in w83627ehf_init_device()
1273 data->temp_type[i] = (diode & (0x10 << i)) ? 1 : 3; in w83627ehf_init_device()
Dnct6775.c2406 u8 vbat, diode, vbit, dbit; in store_temp_type() local
2421 diode = nct6775_read_value(data, data->REG_DIODE) & ~dbit; in store_temp_type()
2425 diode |= dbit; in store_temp_type()
2434 nct6775_write_value(data, data->REG_DIODE, diode); in store_temp_type()
3505 u8 tmp, diode; in nct6775_init_device() local
3531 diode = nct6775_read_value(data, data->REG_DIODE); in nct6775_init_device()
3538 = 3 - ((diode >> i) & data->DIODE_MASK); in nct6775_init_device()
DKconfig1147 Semiconductor LM63, LM64, and LM96163 remote diode digital temperature
/drivers/media/rc/
DKconfig395 tristate "Nokia N900 IR transmitter diode"
399 transmitter diode built in the Nokia N900 (RX51) device.