Lines Matching refs:bypass_attn
201 u8 bypass_attn; /* Bypass voltage attenuator */ member
284 static inline int reg2volt(int channel, u16 reg, u8 bypass_attn) in reg2volt() argument
288 if (bypass_attn & (1 << channel)) in reg2volt()
293 static inline u16 volt2reg(int channel, long volt, u8 bypass_attn) in volt2reg() argument
298 if (bypass_attn & (1 << channel)) in volt2reg()
343 reg2volt(sattr->index, val, data->bypass_attn)); in voltage_show()
364 volt2reg(sattr->index, val, data->bypass_attn); in voltage_store()
1636 data->bypass_attn = (0x3 << 3) | 0x3; in adt7475_probe()
1638 data->bypass_attn = ((data->config4 & CONFIG4_ATTN_IN10) >> 4) | in adt7475_probe()
1641 data->bypass_attn &= data->has_voltage; in adt7475_probe()
1710 if (data->bypass_attn) in adt7475_probe()
1712 (data->bypass_attn & (1 << 0)) ? " in0" : "", in adt7475_probe()
1713 (data->bypass_attn & (1 << 1)) ? " in1" : "", in adt7475_probe()
1714 (data->bypass_attn & (1 << 3)) ? " in3" : "", in adt7475_probe()
1715 (data->bypass_attn & (1 << 4)) ? " in4" : ""); in adt7475_probe()