fbdev: sh_mobile_meram: Allocate ICBs automatically
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Dec 2011 15:36:13 +0000 (16:36 +0100)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Mar 2012 21:41:11 +0000 (22:41 +0100)
commit481100506b34d666243832c3f2aee905c03cb8e7
treecee1b897a4c87c5c211d75d70ecb73095001576b
parent974d250be2c70c7bf899275b23b241685d4ed7f8
fbdev: sh_mobile_meram: Allocate ICBs automatically

Instead of manually specifying the ICBs to use in platform data,
allocate them automatically at runtime. The range of reserved ICBs (for
instance to be used through UIO), if any, is passed in the platform data
reserved_icbs field as a bitmask.

The MERAM registration function now returns a pointer to an opaque MERAM
object, which is passed to the update and unregistration functions.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/sh_mobile_lcdcfb.c
drivers/video/sh_mobile_lcdcfb.h
drivers/video/sh_mobile_meram.c
include/video/sh_mobile_meram.h