static int drm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle)
{
- struct drm_module_t *dmod = (struct drm_module_t *) mod;
struct gralloc_drm_bo_t *bo;
int err = 0;
static int drm_mod_free_gpu0(alloc_device_t *dev, buffer_handle_t handle)
{
- struct drm_module_t *dmod = (struct drm_module_t *) dev->common.module;
struct gralloc_drm_bo_t *bo;
int err = 0;
{
struct drm_module_t *dmod = (struct drm_module_t *) dev->common.module;
struct gralloc_drm_bo_t *bo;
- int size, bpp, err = 0;
+ int bpp, err = 0;
bpp = gralloc_drm_get_bpp(format);
if (!bpp)
static int drm_mod_post_fb0(struct framebuffer_device_t *fb,
buffer_handle_t handle)
{
- struct drm_module_t *dmod = (struct drm_module_t *) fb->common.module;
struct gralloc_drm_bo_t *bo;
bo = gralloc_drm_bo_from_handle(handle);