Re: [RFC PATCH 09/10] lis3: Scale output values to mg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Op 10-11-09 14:31, Daniel Mack schreef:
> Does the change to the min/max parameters to input_set_abs_params()
> also reflect the factor in which the multiplication factor alters?
> 
> In other words: If I scale the read value to the full range reported by
> the input device - will I still get the same value before and after the
> change? If that's the case, I guess the 'breakage' would be acceptable.
So your question is whether this changes the values of the joystick
interface, right? I haven't tested the patch, so Samu could probably
better answer, but looking at the code and with what I know about the
joystick subsystem, it shouldn't as the values are always scaled between
-32000 and 32000 (approximately).

[thinking further....]

So not only this means it's not going to break applications using only
the joystick interface, it also means that the whole business of scaling
the raw values for the joystick subsystem in the patch is completely
useless. Scaling to mG should be done only for the sysfs interface.

Samu, could you confirm my understanding, and fix the patch if necessary?

Eric

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux