]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
extcon: Fix attached value returned by is_extcon_changed
authorHans de Goede <hdegoede@redhat.com>
Sun, 23 Aug 2015 22:35:36 +0000 (00:35 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 21 Sep 2015 06:07:19 +0000 (15:07 +0900)
commitf4513b065f7dbd37224226ef6e44b09eff742776
tree29e311e448ab030241f808fc4603fa32a41e84de
parent1f93e4a96c9109378204c147b3eec0d0e8100fde
extcon: Fix attached value returned by is_extcon_changed

is_extcon_changed should only check the idx-th bit of new, not
the entirety of new when setting attached.

This fixes extcon sending notifications that a cable was inserted when
it gets removed while another cable is still connected.

Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c