diff options
author | Roger Quadros <rogerq@ti.com> | 2015-07-06 17:46:58 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-07-31 15:18:41 +0900 |
commit | f7a898117aebf3d52370fe637f4d7aff7a237afc (patch) | |
tree | 58c9f79a9b713efb39c1507b9dafa64f4a616f4b /firmware/ess | |
parent | be052cc87745e01846fb036eb81567c784439078 (diff) | |
download | linux-stable-f7a898117aebf3d52370fe637f4d7aff7a237afc.tar.gz linux-stable-f7a898117aebf3d52370fe637f4d7aff7a237afc.tar.bz2 linux-stable-f7a898117aebf3d52370fe637f4d7aff7a237afc.zip |
extcon: Fix extcon_cable_get_state() from getting old state after notification
Currently the extcon code notifiers the interested listeners
before it updates the extcon state with the new state.
This will cause the listeners that use extcon_cable_get_state()
to get the stale state and loose the new state.
Fix this by first changing the extcon state variable and then
notifying listeners.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Tested-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'firmware/ess')
0 files changed, 0 insertions, 0 deletions