With more overlays and overlay managers on OMAP4, and more coming in future OMAPs, the current way of defining the DISPC overlay and manager register offsets through macros isn't scalable. Introduce a new dispc.h header which contains Macros for common DISPC registers and inline functions for overlay and manager specific registers. Remove usage of struct dispc_reg and use u16 instead. Note: Can be tried on: https://gitorious.org/~boddob/linux-omap-dss2/archit-dss2-clone/commits/master Tested on: 4430sdp and 3430sdp. Archit Taneja (3): OMAP: DSS2: Clean up DISPC overlay register definitions OMAP: DSS2: Clean up DISPC overlay manager register definitions OMAP: DSS2: Remove usage of struct dispc_reg drivers/video/omap2/dss/dispc.c | 1086 +++++++++++++++++--------------------- drivers/video/omap2/dss/dispc.h | 544 ++++++++++++++++++++ 2 files changed, 1030 insertions(+), 600 deletions(-) create mode 100644 drivers/video/omap2/dss/dispc.h -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html