summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorFenglin Wu <quic_fenglinw@quicinc.com>2024-04-15 16:03:40 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-16 13:23:34 +0200
commitfd4bb5284d34687c82356f07efe957af89ee51fe (patch)
tree19b30c2b0ac86a0aec18fa1a497e74bb21d4c83b /net/switchdev/switchdev.c
parent502f295dcccf0ee7c4bddcf1ff2876987aaf89ca (diff)
Input: pm8xxx-vibrator - correct VIB_MAX_LEVELS calculation
[ Upstream commit 48c0687a322d54ac7e7a685c0b6db78d78f593af ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions