Searched +full:rsense +full:- +full:val +full:- +full:milli +full:- +full:ohms (Results 1 – 2 of 2) sorted by relevance
1 // SPDX-License-Identifier: GPL-2.010 #include <linux/clk-provider.h>15 #include <linux/hwmon-sysfs.h>115 #define LTC4282_CLKIN_RANGE (LTC4282_CLKIN_MAX - LTC4282_CLKIN_MIN + 1)146 u32 rsense; member163 u32 val = LTC4282_CLKOUT_INT; in ltc4282_set_rate() local166 val = LTC4282_CLKOUT_TICK; in ltc4282_set_rate()168 return regmap_update_bits(st->map, LTC4282_CLK_DIV, LTC4282_CLKOUT_MASK, in ltc4282_set_rate()169 FIELD_PREP(LTC4282_CLKOUT_MASK, val)); in ltc4282_set_rate()183 int idx = find_closest(req->rate, ltc4282_out_rates, in ltc4282_determine_rate()[all …]
1 // SPDX-License-Identifier: GPL-2.03 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System60 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)62 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG)130 /* cold junction for thermocouples and rsense for rtd's and thermistor's */312 * instance a resolution of 2^-10 means we have 10 fractional bits.314 static u32 __convert_to_raw(const u64 val, const u32 resolution) in __convert_to_raw() argument316 u64 __res = val * resolution; in __convert_to_raw()324 static u32 __convert_to_raw_sign(const u64 val, const u32 resolution) in __convert_to_raw_sign() argument326 s64 __res = -(s32)val; in __convert_to_raw_sign()[all …]