sh_mobile_meram: Rename operations to cache_[alloc|free|update]
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / video / sh_mobile_meram.h
index 29b2fd3b147e8773cadcd08f5f107fad0d7a7000..8a5afaf2c6dca2cb24bf89aefed0b3704e0eb6be 100644 (file)
@@ -41,19 +41,14 @@ struct sh_mobile_meram_cfg {
 struct module;
 struct sh_mobile_meram_ops {
        struct module   *module;
-       /* register usage of meram */
-       void *(*meram_register)(struct sh_mobile_meram_info *meram_dev,
-                               const struct sh_mobile_meram_cfg *cfg,
-                               unsigned int xres, unsigned int yres,
-                               unsigned int pixelformat,
-                               unsigned int *pitch);
-
-       /* unregister usage of meram */
-       void (*meram_unregister)(struct sh_mobile_meram_info *meram_dev,
-                                void *data);
-
-       /* update meram settings */
-       void (*meram_update)(struct sh_mobile_meram_info *meram_dev, void *data,
+
+       /* LCDC cache management */
+       void *(*cache_alloc)(struct sh_mobile_meram_info *meram_dev,
+                            const struct sh_mobile_meram_cfg *cfg,
+                            unsigned int xres, unsigned int yres,
+                            unsigned int pixelformat, unsigned int *pitch);
+       void (*cache_free)(struct sh_mobile_meram_info *meram_dev, void *data);
+       void (*cache_update)(struct sh_mobile_meram_info *meram_dev, void *data,
                             unsigned long base_addr_y,
                             unsigned long base_addr_c,
                             unsigned long *icb_addr_y,