summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxbe/nxbe_colormap.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-17 03:08:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-17 03:08:30 +0000
commit7acedfe75789174106ff09483c82b5edf527c076 (patch)
treebfd2bca94b6e3f013162a2ff47a3403a2c017575 /nuttx/graphics/nxbe/nxbe_colormap.c
parent16ae1294c4dfb7465564eb5fa97fdeda1f3fcb21 (diff)
downloadpx4-nuttx-7acedfe75789174106ff09483c82b5edf527c076.tar.gz
px4-nuttx-7acedfe75789174106ff09483c82b5edf527c076.tar.bz2
px4-nuttx-7acedfe75789174106ff09483c82b5edf527c076.zip
Generalize graphics driver type
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2597 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxbe/nxbe_colormap.c')
-rw-r--r--nuttx/graphics/nxbe/nxbe_colormap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_colormap.c b/nuttx/graphics/nxbe/nxbe_colormap.c
index 25a493d1d..f35393b20 100644
--- a/nuttx/graphics/nxbe/nxbe_colormap.c
+++ b/nuttx/graphics/nxbe/nxbe_colormap.c
@@ -45,8 +45,6 @@
#include <errno.h>
#include <debug.h>
-#include <nuttx/fb.h>
-
#include "nxbe.h"
/****************************************************************************
@@ -82,7 +80,7 @@
****************************************************************************/
#if CONFIG_FB_CMAP
-int nxbe_colormap(FAR struct fb_vtable_s *fb)
+int nxbe_configure(FAR NX_DRIVERTYPE *dev, FAR struct nxbe_state_s *be)
{
struct fb_cmap_s cmap;
uint8_t *alloc;
@@ -143,7 +141,7 @@ int nxbe_colormap(FAR struct fb_vtable_s *fb)
/* Then set the color map */
- ret =fb->putcmap(fb, &cmap);
+ ret = dev->putcmap(dev, &cmap);
free(alloc);
return ret;