commit | 681350a3068d021995e12ff013df49a0f474357a | [log] [tgz] |
---|---|---|
author | Zhou Song <zhous@codeaurora.org> | Thu Oct 19 16:28:42 2017 +0800 |
committer | Zhou Song <zhous@codeaurora.org> | Fri Oct 20 13:18:40 2017 +0800 |
tree | ffc02d4a205db5e3896f468deeeee094117661c5 | |
parent | fc9149ca59deb6f6b5d9da6f7b6946dffdd5171f [diff] |
hal: check device type before handling connection/disconnection Device is assumed to be an output device when handling connection or disconnection. Besides the BIT_IN, as the input device could share same bit definition with the output device, thus disconnecting input device may cause output device disconnected unexpectly. Check for device type to avoid mishandling. Change-Id: Iab637220bd43d16bc2cabb53f610ed978e1e5fea