git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
video
/
matrox
/
matroxfb_g450.c
diff --git
a/drivers/video/matrox/matroxfb_g450.c
b/drivers/video/matrox/matroxfb_g450.c
index
35008af
..
4d610b4
100644
(file)
--- a/
drivers/video/matrox/matroxfb_g450.c
+++ b/
drivers/video/matrox/matroxfb_g450.c
@@
-20,6
+20,8
@@
#include <asm/uaccess.h>
#include <asm/div64.h>
#include <asm/uaccess.h>
#include <asm/div64.h>
+#include "matroxfb_g450.h"
+
/* Definition of the various controls */
struct mctl {
struct v4l2_queryctrl desc;
/* Definition of the various controls */
struct mctl {
struct v4l2_queryctrl desc;
@@
-57,7
+59,7
@@
static const struct mctl g450_controls[] =
}, offsetof(struct matrox_fb_info, altout.tvo_params.testout) },
};
}, offsetof(struct matrox_fb_info, altout.tvo_params.testout) },
};
-#define G450CTRLS
(sizeof(g450_controls)/sizeof(g450_controls[0])
)
+#define G450CTRLS
ARRAY_SIZE(g450_controls
)
/* Return: positive number: id found
-EINVAL: id not found, return failure
/* Return: positive number: id found
-EINVAL: id not found, return failure