Input: joydev - use clamp() macro
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 28 Jan 2017 19:01:33 +0000 (11:01 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Feb 2017 18:39:40 +0000 (10:39 -0800)
commit5ec69524d43095752510fdcdadc4a6baf50d7c18
tree940b85415931aa88c1d346ebae77445f57b22aaf
parent6ecfe51b4082e7cff12609f97daa052ae04b61fd
Input: joydev - use clamp() macro

We have a nice macro ensuring that the value is within certain range, let's
use it instead of open-coding.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joydev.c