Re: [PATCH v3] iio: adc: ina2xx: Make calibration register value fixed

2017-12-17 Thread Stefan BrĂ¼ns
On Friday, December 15, 2017 8:59:23 AM CET Maciej Purski wrote: > Calibration register is used for calculating current register in > hardware according to datasheet: > current = shunt_volt * calib_register / 2048 (ina 226) > current = shunt_volt * calib_register / 4096 (ina 219) > > Fix calib_reg

Re: [PATCH v3] iio: adc: ina2xx: Make calibration register value fixed

2017-12-17 Thread Jonathan Cameron
On Fri, 15 Dec 2017 08:59:23 +0100 Maciej Purski wrote: > Calibration register is used for calculating current register in > hardware according to datasheet: > current = shunt_volt * calib_register / 2048 (ina 226) > current = shunt_volt * calib_register / 4096 (ina 219) > > Fix calib_register v

[PATCH v3] iio: adc: ina2xx: Make calibration register value fixed

2017-12-15 Thread Maciej Purski
Calibration register is used for calculating current register in hardware according to datasheet: current = shunt_volt * calib_register / 2048 (ina 226) current = shunt_volt * calib_register / 4096 (ina 219) Fix calib_register value to 2048 for ina226 and 4096 for ina 219 in order to avoid truncat