linux/drivers/input/misc
Florian Vaussard 6473bbfd7e Input: drv2667 - fix misuse of regmap_update_bits
Using regmap_update_bits(..., mask, 1) with 'mask' following (1 << k)
and k greater than 0 is wrong. Indeed, _regmap_update_bits will perform
(mask & 1), which results in 0 if LSB of mask is 0. Thus the call
regmap_update_bits(..., mask, 1) is in reality equivalent to
regmap_update_bits(..., mask, 0).

In such a case, the correct use is regmap_update_bits(..., mask, mask).

This driver is performing such a mistake with the DRV2667_STANDBY mask,
which equals (1 << 6). Fix the driver to make it consistent with the
API, and fix the alignment problem at the same time. Please note that
this change is untested, as I do not have this piece of hardware.
Testers are welcome!

Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2016-11-30 09:03:45 -08:00
..
88pm80x_onkey.c
88pm860x_onkey.c
ab8500-ponkey.c
ad714x-i2c.c
ad714x-spi.c
ad714x.c
ad714x.h
adxl34x-i2c.c
adxl34x-spi.c
adxl34x.c
adxl34x.h
apanel.c Input: apanel - spelling mistake - "skiping" -> "skipping" 2016-06-23 10:44:01 -07:00
arizona-haptics.c Input: arizona-haptic - don't assign input_dev parent 2016-04-17 05:24:52 -07:00
ati_remote2.c Input: ati_remote2 - fix crashes on detecting device with invalid descriptor 2016-03-23 17:29:29 -07:00
atlas_btns.c
atmel_captouch.c Input: add Atmel Captouch Button driver 2016-05-18 15:08:19 -07:00
axp20x-pek.c
bfin_rotary.c
bma150.c Input: bma150 - avoid binding to bma180 if IIO bma180 driver present 2016-11-16 16:59:24 -08:00
cm109.c Input: cm109 - spin_lock in complete() cleanup 2016-05-04 16:01:42 -07:00
cma3000_d0x_i2c.c
cma3000_d0x.c
cma3000_d0x.h
cobalt_btns.c
da9052_onkey.c
da9055_onkey.c
da9063_onkey.c Input: da9063 - fix module autoload when registered via OF 2016-10-26 16:48:16 -07:00
dm355evm_keys.c
drv260x.c
drv2665.c Input: drv2665 - fix misuse of regmap_update_bits 2016-11-30 09:03:44 -08:00
drv2667.c Input: drv2667 - fix misuse of regmap_update_bits 2016-11-30 09:03:45 -08:00
e3x0-button.c
gp2ap002a00f.c
gpio_decoder.c Input: add generic input driver to read encoded GPIO lines 2016-08-29 20:24:23 -07:00
gpio_tilt_polled.c
gpio-beeper.c
hisi_powerkey.c Input: add powerkey driver for HISI 65xx SoC 2016-06-23 13:45:54 -07:00
hp_sdc_rtc.c
ideapad_slidebar.c
ims-pcu.c Input: ims-pcu - sanity check against missing interfaces 2016-03-17 14:16:57 -07:00
ixp4xx-beeper.c
Kconfig Input: da9061 - onkey driver 2016-10-26 16:01:16 -07:00
keyspan_remote.c
kxtj9.c
m68kspkr.c
Makefile Input: add generic input driver to read encoded GPIO lines 2016-08-29 20:24:23 -07:00
max8925_onkey.c
max8997_haptic.c pwm: Changes for v4.7-rc1 2016-05-25 10:40:15 -07:00
max77693-haptic.c Linux 4.8 2016-10-13 17:25:40 -07:00
mc13783-pwrbutton.c
mma8450.c
mpu3050.c
palmas-pwrbutton.c
pcap_keys.c
pcf8574_keypad.c
pcf50633-input.c
pcspkr.c
pm8xxx-vibrator.c
pm8941-pwrkey.c
pmic8xxx-pwrkey.c Input: pmic8xxx-pwrkey - fix algorithm for converting trigger delay 2016-04-17 05:24:53 -07:00
powermate.c
pwm-beeper.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2016-05-27 19:14:35 -07:00
rb532_button.c
regulator-haptic.c Input: regulator-haptic - fix spelling mistake: "dveice" -> "device" 2016-06-23 10:43:57 -07:00
retu-pwrbutton.c
rotary_encoder.c Input: rotary_encoder - support binary encoding of states 2016-07-27 18:26:10 -07:00
sgi_btns.c
sirfsoc-onkey.c
soc_button_array.c Input: soc_button_array - bail out earlier if gpiod_count is zero 2016-11-25 11:39:50 -08:00
sparcspkr.c
tps65218-pwrbutton.c Input: tps65218-pwrbutton - add support for tps65217 variant 2016-09-10 10:47:49 -07:00
twl4030-pwrbutton.c
twl4030-vibra.c Input: twl4030-vibra - do not reparent to grandparent 2016-04-20 14:39:46 -07:00
twl6040-vibra.c Merge branch 'next' into for-linus 2016-05-16 17:25:08 -07:00
uinput.c Merge branch 'cec-defines' into for-linus 2016-06-18 17:25:08 -07:00
wistron_btns.c
wm831x-on.c
xen-kbdfront.c Input: xen-kbdfront - prefer xenbus_write() over xenbus_printf() where possible 2016-07-13 17:27:24 -07:00
yealink.c
yealink.h