diff options
Diffstat (limited to 'drivers/media/video/via-camera.c')
-rw-r--r-- | drivers/media/video/via-camera.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/drivers/media/video/via-camera.c b/drivers/media/video/via-camera.c index bfae41ba53c3..20f7237b8242 100644 --- a/drivers/media/video/via-camera.c +++ b/drivers/media/video/via-camera.c | |||
@@ -156,14 +156,10 @@ static struct via_format { | |||
156 | .mbus_code = V4L2_MBUS_FMT_YUYV8_2X8, | 156 | .mbus_code = V4L2_MBUS_FMT_YUYV8_2X8, |
157 | .bpp = 2, | 157 | .bpp = 2, |
158 | }, | 158 | }, |
159 | { | ||
160 | .desc = "RGB 565", | ||
161 | .pixelformat = V4L2_PIX_FMT_RGB565, | ||
162 | .mbus_code = V4L2_MBUS_FMT_RGB565_2X8_LE, | ||
163 | .bpp = 2, | ||
164 | }, | ||
165 | /* RGB444 and Bayer should be doable, but have never been | 159 | /* RGB444 and Bayer should be doable, but have never been |
166 | tested with this driver. */ | 160 | tested with this driver. RGB565 seems to work at the default |
161 | resolution, but results in color corruption when being scaled by | ||
162 | viacam_set_scaled(), and is disabled as a result. */ | ||
167 | }; | 163 | }; |
168 | #define N_VIA_FMTS ARRAY_SIZE(via_formats) | 164 | #define N_VIA_FMTS ARRAY_SIZE(via_formats) |
169 | 165 | ||
@@ -1504,14 +1500,4 @@ static struct platform_driver viacam_driver = { | |||
1504 | .remove = viacam_remove, | 1500 | .remove = viacam_remove, |
1505 | }; | 1501 | }; |
1506 | 1502 | ||
1507 | static int viacam_init(void) | 1503 | module_platform_driver(viacam_driver); |
1508 | { | ||
1509 | return platform_driver_register(&viacam_driver); | ||
1510 | } | ||
1511 | module_init(viacam_init); | ||
1512 | |||
1513 | static void viacam_exit(void) | ||
1514 | { | ||
1515 | platform_driver_unregister(&viacam_driver); | ||
1516 | } | ||
1517 | module_exit(viacam_exit); | ||