On Sat, Jun 07, 2014 at 09:47:01PM +0100, Fabio Baltieri wrote: > All devices supported by the ina2xx driver are bidirectional and reports > the measured value as a signed 16 bit, but the current driver > implementation caches the number as an u16, leading to an incorrect sign > extension when reporting to the userspace in ina2xx_get_value(). > > This patch fixes the problem by using a s16 instead, and has been tested > on an INA219. > > Signed-off-by: Fabio Baltieri <fabio.baltieri@xxxxxxxxx> Applied. Thanks, Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors