summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorFenglin Wu <quic_fenglinw@quicinc.com>2024-04-16 02:03:40 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-04-16 02:21:45 +0300
commit48c0687a322d54ac7e7a685c0b6db78d78f593af (patch)
treef23a3380b802bac0324ae193a59102a04a733b7d /rust/helpers/build_bug.c
parentba2ec9c4f0c8ab59befc7f62e1606a840347f020 (diff)
downloadlinux-48c0687a322d54ac7e7a685c0b6db78d78f593af.tar.xz
Input: pm8xxx-vibrator - correct VIB_MAX_LEVELS calculation
The output voltage is inclusive hence the max level calculation is off-by-one-step. Correct it. iWhile we are at it also add a define for the step size instead of using the magic value. Fixes: 11205bb63e5c ("Input: add support for pm8xxx based vibrator driver") Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20240412-pm8xxx-vibrator-new-design-v10-1-0ec0ad133866@quicinc.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions