kernel: fix user_offsets and calibration
Part of the calculation was wrong, so offsets didn't properly work.
This commit fixes the offsets and turns their user-accessible
values from 0..0xfff to -5000..5000 as they are now expressed in millivolts.
Unfortunately the code changes more than strictly necessary.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment