liboverlay: Add support for MDSS Rotator.

Acked-by: Sushil Chauhan <sushilchauhan@codeaurora.org>

Change-Id: I60a2b0ce2b491d03b2b1a04966113e253b7f3dd8
diff --git a/liboverlay/overlayUtils.h b/liboverlay/overlayUtils.h
index 66c5df7..0648c85 100644
--- a/liboverlay/overlayUtils.h
+++ b/liboverlay/overlayUtils.h
@@ -66,6 +66,11 @@
 
 // fwd
 class Overlay;
+class OvFD;
+
+/* helper function to open by using fbnum */
+bool open(OvFD& fd, uint32_t fbnum, const char* const dev,
+    int flags = O_RDWR);
 
 namespace utils {
 struct Whf;
@@ -790,6 +795,11 @@
             s, mFBWidth, mFBHeight, mFBbpp, mFBystride);
 }
 
+inline bool openDev(OvFD& fd, int fbnum,
+    const char* const devpath, int flags) {
+    return overlay::open(fd, fbnum, devpath, flags);
+}
+
 } // namespace utils ends
 
 //--------------------Class Res stuff (namespace overlay only) -----------
@@ -811,12 +821,6 @@
 
 //--------------------Class OvFD stuff (namespace overlay only) -----------
 
-class OvFD;
-
-/* helper function to open by using fbnum */
-bool open(OvFD& fd, uint32_t fbnum, const char* const dev,
-    int flags = O_RDWR);
-
 /*
 * Holds one FD
 * Dtor will NOT close the underlying FD.