drm_hwcomposer: Use bool value for hotplug
Interpret the |connected| parameter in SendHotplugEventToClient as a
bool, rather than comparing it to DRM_MODE_CONNECTED.
Signed-off-by: Drew Davenport <ddavenport@chromium.org>
diff --git a/hwc2_device/DrmHwcTwo.cpp b/hwc2_device/DrmHwcTwo.cpp
index 8837285..2ea6c77 100644
--- a/hwc2_device/DrmHwcTwo.cpp
+++ b/hwc2_device/DrmHwcTwo.cpp
@@ -244,8 +244,8 @@
* handler. This is the reason we're using recursive mutex.
*/
hc.first(hc.second, displayid,
- connected == DRM_MODE_CONNECTED ? HWC2_CONNECTION_CONNECTED
- : HWC2_CONNECTION_DISCONNECTED);
+ connected ? HWC2_CONNECTION_CONNECTED
+ : HWC2_CONNECTION_DISCONNECTED);
}
}