summaryrefslogtreecommitdiff
path: root/drivers/input/misc/pwm-beeper.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-03-12 14:50:36 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-12 14:53:10 -0700
commit877bef7de141db241e0c5d06db988b4ecbe29cf3 (patch)
tree7bea020aa908e9b21378429f5e0937c26bdff80b /drivers/input/misc/pwm-beeper.c
parentb6310affbe2bf14cbe6b6d28db48e1e37d52fbca (diff)
Input: sun4i-ts - really fix A10 temperature reporting
The commit titled: "Input: sun4i-ts - A10 (sun4i) has a different temperature curve" contains a math error, the offset it uses is in degrees, but the actual code applies the offset before multiplying by stepsize :| Given that this is rather backwards (every math course ever thought applies the multiplication before the offset for linear functions), this commit fixes things by changing the code applying the offset to do the logical thing, adjusting the offset for the other models accordingly. This has been tested on an A10, A13, A20 and A31 to make sure everything really is correct now. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/pwm-beeper.c')
0 files changed, 0 insertions, 0 deletions