summaryrefslogtreecommitdiffstats
path: root/Documentation/translations/it_IT/process/coding-style.rst
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2021-12-07 08:23:00 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-12-07 08:24:03 +0100
commit8c374ef45416281c7172dc29ed438dfb445795f1 (patch)
treec3c12a92f4e38d908563716c4ced9d713a8c81f1 /Documentation/translations/it_IT/process/coding-style.rst
parentInput: palmas-pwrbutton - make a couple of arrays static const (diff)
downloadlinux-8c374ef45416281c7172dc29ed438dfb445795f1.tar.xz
linux-8c374ef45416281c7172dc29ed438dfb445795f1.zip
Input: ff-core - correct magnitude setting for rumble compatibility
When converting a rumble into a periodic effect, for compatibility, the magnitude is effectively calculated using: magnitude = max(strong_rubble / 3 + weak_rubble / 6, 0x7fff); The rumble magnitudes are both u16 and the resulting magnitude is s16. The max is presumably an attempt to limit the result of the calculation to the maximum possible magnitude for the s16 result, and thus should be a min. However in the case of strong = weak = 0xffff, the result of the first part of the calculation is 0x7fff, meaning that the min would be redundant anyway, so simply remove the current max. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20211130135039.13726-1-ckeepax@opensource.cirrus.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/translations/it_IT/process/coding-style.rst')
0 files changed, 0 insertions, 0 deletions