twx-linux/drivers/input/misc
Fenglin Wu 4031c57f02 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>
2024-06-12 11:12:37 +02:00
..
88pm80x_onkey.c
88pm860x_onkey.c
ab8500-ponkey.c
ad714x-i2c.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
ad714x-spi.c
ad714x.c
ad714x.h
adxl34x-i2c.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
adxl34x-spi.c
adxl34x.c Input: adxl34x - do not hardcode interrupt trigger type 2023-05-10 17:28:57 -07:00
adxl34x.h
apanel.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
ariel-pwrbutton.c
arizona-haptics.c
atc260x-onkey.c
ati_remote2.c
atlas_btns.c
atmel_captouch.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
axp20x-pek.c
bma150.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
cm109.c
cma3000_d0x_i2c.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
cma3000_d0x.c Input: cma3000_d0x - remove unneeded code 2023-04-09 19:18:39 -07:00
cma3000_d0x.h
cobalt_btns.c
cpcap-pwrbutton.c Input: cpcap-pwrbutton - replace GPLv2 boilerplate with SPDX 2023-07-05 14:50:00 -07:00
da7280.c pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() 2024-06-12 11:12:24 +02:00
da9052_onkey.c
da9055_onkey.c
da9063_onkey.c Input: da9063 - add wakeup support 2023-07-18 11:37:52 -07:00
drv260x.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
drv2665.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
drv2667.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
e3x0-button.c
gpio_decoder.c
gpio-beeper.c
gpio-vibra.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
hisi_powerkey.c
hp_sdc_rtc.c
ibm-panel.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
ideapad_slidebar.c
ims-pcu.c Input: ims-pcu - fix printf string overflow 2024-06-12 11:12:36 +02:00
iqs269a.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
iqs626a.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
iqs7222.c Input: iqs7222 - add support for IQS7222D v1.1 and v1.2 2024-03-26 18:20:02 -04:00
Kconfig Input updates for 6.6 merge window: 2023-09-06 09:24:25 -07:00
keyspan_remote.c
kxtj9.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
m68kspkr.c
Makefile
max8925_onkey.c
max8997_haptic.c
max77650-onkey.c
max77693-haptic.c
mc13783-pwrbutton.c
mma8450.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
nxp-bbnsm-pwrkey.c
palmas-pwrbutton.c
pcap_keys.c
pcf8574_keypad.c Input: Switch i2c drivers back to use .probe() 2023-05-17 09:59:11 -07:00
pcf50633-input.c
pcspkr.c
pm8xxx-vibrator.c Input: pm8xxx-vibrator - correct VIB_MAX_LEVELS calculation 2024-06-12 11:12:37 +02:00
pm8941-pwrkey.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
pmic8xxx-pwrkey.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
powermate.c Input: powermate - fix use-after-free in powermate_config_complete 2023-10-13 20:17:02 -07:00
pwm-beeper.c pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() 2024-06-12 11:12:24 +02:00
pwm-vibra.c pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() 2024-06-12 11:12:24 +02:00
rave-sp-pwrbutton.c
rb532_button.c
regulator-haptic.c
retu-pwrbutton.c
rk805-pwrkey.c
rotary_encoder.c Input: rotary_encoder - don't double assign input->dev.parent 2023-07-12 14:10:32 -07:00
rt5120-pwrkey.c
sc27xx-vibra.c
sgi_btns.c
soc_button_array.c Input: soc_button_array - add mapping for airplane mode button 2024-01-01 12:42:41 +00:00
sparcspkr.c Input: Explicitly include correct DT includes 2023-07-17 10:03:07 -07:00
stpmic1_onkey.c
tps65218-pwrbutton.c
tps65219-pwrbutton.c Input: tps65219-pwrbutton - use regmap_set_bits() 2023-06-06 11:11:58 -07:00
twl4030-pwrbutton.c
twl4030-vibra.c
twl6040-vibra.c
uinput.c Input: uinput - allow injecting event times 2023-05-01 20:22:11 -07:00
wistron_btns.c
wm831x-on.c
xen-kbdfront.c
yealink.c
yealink.h