diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2010-05-24 17:34:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 11:07:09 -0400 |
commit | 49c39b4953e545ce3b5957cce22e1ade01c6e642 (patch) | |
tree | 7ed545609a4abd9cf818d27a08019e0c821f8d48 | |
parent | 1f9c3e1f07e39c8af3bf42236fc553b5bb0f83f1 (diff) |
fbdev: move FBIO_WAITFORVSYNC to linux/fb.h
FBIO_WAITFORVSYNC is currently implemented by matroxfb, atyfb, intelfb and
more. All of them keep redefining the same FBIO_WAITFORVSYNC macro over
and over again, so move it to linux/fb.h and clean up those duplicate
defines.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Maik Broemme <mbroemme@plusserver.de>
Cc: Petr Vandrovec <vandrove@vc.cvut.cz>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: "Hiremath, Vaibhav" <hvaibhav@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 4 | ||||
-rw-r--r-- | drivers/video/intelfb/intelfb.h | 4 | ||||
-rw-r--r-- | include/linux/fb.h | 2 | ||||
-rw-r--r-- | include/linux/ivtvfb.h | 1 | ||||
-rw-r--r-- | include/linux/matroxfb.h | 3 | ||||
-rw-r--r-- | include/video/sh_mobile_lcdc.h | 2 |
6 files changed, 2 insertions, 14 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 29d72851f85b..f8d69ad36830 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -1820,10 +1820,6 @@ struct atyclk { | |||
1820 | #define ATYIO_FEATW 0x41545903 /* ATY\03 */ | 1820 | #define ATYIO_FEATW 0x41545903 /* ATY\03 */ |
1821 | #endif | 1821 | #endif |
1822 | 1822 | ||
1823 | #ifndef FBIO_WAITFORVSYNC | ||
1824 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) | ||
1825 | #endif | ||
1826 | |||
1827 | static int atyfb_ioctl(struct fb_info *info, u_int cmd, u_long arg) | 1823 | static int atyfb_ioctl(struct fb_info *info, u_int cmd, u_long arg) |
1828 | { | 1824 | { |
1829 | struct atyfb_par *par = (struct atyfb_par *) info->par; | 1825 | struct atyfb_par *par = (struct atyfb_par *) info->par; |
diff --git a/drivers/video/intelfb/intelfb.h b/drivers/video/intelfb/intelfb.h index 40984551c927..6b51175629c7 100644 --- a/drivers/video/intelfb/intelfb.h +++ b/drivers/video/intelfb/intelfb.h | |||
@@ -371,10 +371,6 @@ struct intelfb_info { | |||
371 | ((dinfo)->chipset == INTEL_965G) || \ | 371 | ((dinfo)->chipset == INTEL_965G) || \ |
372 | ((dinfo)->chipset == INTEL_965GM)) | 372 | ((dinfo)->chipset == INTEL_965GM)) |
373 | 373 | ||
374 | #ifndef FBIO_WAITFORVSYNC | ||
375 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) | ||
376 | #endif | ||
377 | |||
378 | /*** function prototypes ***/ | 374 | /*** function prototypes ***/ |
379 | 375 | ||
380 | extern int intelfb_var_to_depth(const struct fb_var_screeninfo *var); | 376 | extern int intelfb_var_to_depth(const struct fb_var_screeninfo *var); |
diff --git a/include/linux/fb.h b/include/linux/fb.h index 1296af45169d..f3793ebc241c 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -37,7 +37,7 @@ struct dentry; | |||
37 | #define FBIOGET_HWCINFO 0x4616 | 37 | #define FBIOGET_HWCINFO 0x4616 |
38 | #define FBIOPUT_MODEINFO 0x4617 | 38 | #define FBIOPUT_MODEINFO 0x4617 |
39 | #define FBIOGET_DISPINFO 0x4618 | 39 | #define FBIOGET_DISPINFO 0x4618 |
40 | 40 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) | |
41 | 41 | ||
42 | #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ | 42 | #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ |
43 | #define FB_TYPE_PLANES 1 /* Non interleaved planes */ | 43 | #define FB_TYPE_PLANES 1 /* Non interleaved planes */ |
diff --git a/include/linux/ivtvfb.h b/include/linux/ivtvfb.h index 9d88b29ddf55..e8b92f67f10d 100644 --- a/include/linux/ivtvfb.h +++ b/include/linux/ivtvfb.h | |||
@@ -33,6 +33,5 @@ struct ivtvfb_dma_frame { | |||
33 | }; | 33 | }; |
34 | 34 | ||
35 | #define IVTVFB_IOC_DMA_FRAME _IOW('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame) | 35 | #define IVTVFB_IOC_DMA_FRAME _IOW('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame) |
36 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) | ||
37 | 36 | ||
38 | #endif | 37 | #endif |
diff --git a/include/linux/matroxfb.h b/include/linux/matroxfb.h index 2203121a43e9..8c22a8938642 100644 --- a/include/linux/matroxfb.h +++ b/include/linux/matroxfb.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <asm/ioctl.h> | 4 | #include <asm/ioctl.h> |
5 | #include <linux/types.h> | 5 | #include <linux/types.h> |
6 | #include <linux/videodev2.h> | 6 | #include <linux/videodev2.h> |
7 | #include <linux/fb.h> | ||
7 | 8 | ||
8 | struct matroxioc_output_mode { | 9 | struct matroxioc_output_mode { |
9 | __u32 output; /* which output */ | 10 | __u32 output; /* which output */ |
@@ -37,7 +38,5 @@ enum matroxfb_ctrl_id { | |||
37 | MATROXFB_CID_LAST | 38 | MATROXFB_CID_LAST |
38 | }; | 39 | }; |
39 | 40 | ||
40 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) | ||
41 | |||
42 | #endif | 41 | #endif |
43 | 42 | ||
diff --git a/include/video/sh_mobile_lcdc.h b/include/video/sh_mobile_lcdc.h index 2cc893fc1f85..288205457713 100644 --- a/include/video/sh_mobile_lcdc.h +++ b/include/video/sh_mobile_lcdc.h | |||
@@ -34,8 +34,6 @@ enum { LCDC_CLK_BUS, LCDC_CLK_PERIPHERAL, LCDC_CLK_EXTERNAL }; | |||
34 | #define LCDC_FLAGS_HSCNT (1 << 3) /* Disable HSYNC during VBLANK */ | 34 | #define LCDC_FLAGS_HSCNT (1 << 3) /* Disable HSYNC during VBLANK */ |
35 | #define LCDC_FLAGS_DWCNT (1 << 4) /* Disable dotclock during blanking */ | 35 | #define LCDC_FLAGS_DWCNT (1 << 4) /* Disable dotclock during blanking */ |
36 | 36 | ||
37 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) | ||
38 | |||
39 | struct sh_mobile_lcdc_sys_bus_cfg { | 37 | struct sh_mobile_lcdc_sys_bus_cfg { |
40 | unsigned long ldmt2r; | 38 | unsigned long ldmt2r; |
41 | unsigned long ldmt3r; | 39 | unsigned long ldmt3r; |