mfd: 88pm80x: Double shifting bug in suspend/resume
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2016 05:26:56 +0000 (08:26 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 12 Sep 2016 08:56:05 +0000 (09:56 +0100)
commitc178ae68d4785a2e7f44209dfba16a7417ab1aaa
tree4caac78ec4ac8765244e8c94ca5d881547e49060
parent3619b7daa783406962eacb13a900250cc7a0ac04
mfd: 88pm80x: Double shifting bug in suspend/resume

set_bit() and clear_bit() take the bit number so this code is really
doing "1 << (1 << irq)" which is a double shift bug.  It's done
consistently so it won't cause a problem unless "irq" is more than 4.

Fixes: 70c6cce04066 ('mfd: Support 88pm80x in 80x driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/88pm80x.h
This page took 0.025463 seconds and 5 git commands to generate.