Commit 613cbd8d authored by Komal Shah's avatar Komal Shah Committed by Tony Lindgren

[PATCH] ARM: OMAP: camera: c99 style structure

I have attached the patch to update the structures in 16xxcam.c and
sensor file to c99 way and fixes compilation of drivers on h3.
Signed-off-by: default avatarKomal Shah <komal_shah802003@yahoo.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 68c7c42d
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/device.h> #include <linux/platform_device.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/videodev.h> #include <linux/videodev.h>
......
...@@ -566,18 +566,18 @@ omap16xxcam_init(void) ...@@ -566,18 +566,18 @@ omap16xxcam_init(void)
} }
struct camera_hardware camera_hardware_if = { struct camera_hardware camera_hardware_if = {
version : 0x01, .version = 0x01,
name : "OMAP16xx Camera Parallel", .name = "OMAP16xx Camera Parallel",
init : omap16xxcam_init, .init = omap16xxcam_init,
cleanup : omap16xxcam_cleanup, .cleanup = omap16xxcam_cleanup,
open : omap16xxcam_open, .open = omap16xxcam_open,
close : omap16xxcam_close, .close = omap16xxcam_close,
enable : omap16xxcam_enable, .enable = omap16xxcam_enable,
disable : omap16xxcam_disable, .disable = omap16xxcam_disable,
abort : omap16xxcam_abort, .abort = omap16xxcam_abort,
set_xclk : omap16xxcam_set_xclk, .set_xclk = omap16xxcam_set_xclk,
init_dma : omap16xxcam_init_dma, .init_dma = omap16xxcam_init_dma,
start_dma : omap16xxcam_start_dma, .start_dma = omap16xxcam_start_dma,
finish_dma : omap16xxcam_finish_dma, .finish_dma = omap16xxcam_finish_dma,
}; };
...@@ -1152,19 +1152,19 @@ ov9640sensor_init(struct v4l2_pix_format *pix) ...@@ -1152,19 +1152,19 @@ ov9640sensor_init(struct v4l2_pix_format *pix)
} }
struct camera_sensor camera_sensor_if = { struct camera_sensor camera_sensor_if = {
version: 0x01, .version = 0x01,
name: "OV9640", .name = "OV9640",
init: ov9640sensor_init, .init = ov9640sensor_init,
cleanup: ov9640sensor_cleanup, .cleanup = ov9640sensor_cleanup,
enum_pixformat: ov9640sensor_enum_pixformat, .enum_pixformat = ov9640sensor_enum_pixformat,
try_format: ov9640sensor_try_format, .try_format = ov9640sensor_try_format,
calc_xclk: ov9640sensor_calc_xclk, .calc_xclk = ov9640sensor_calc_xclk,
configure: ov9640sensor_configure, .configure = ov9640sensor_configure,
query_control: ov9640sensor_query_control, .query_control = ov9640sensor_query_control,
get_control: ov9640sensor_get_control, .get_control = ov9640sensor_get_control,
set_control: ov9640sensor_set_control, .set_control = ov9640sensor_set_control,
power_on: ov9640sensor_power_on, .power_on = ov9640sensor_power_on,
power_off: ov9640sensor_power_off, .power_off = ov9640sensor_power_off,
}; };
void print_ov9640_regs(void *priv) void print_ov9640_regs(void *priv)
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <net/irda/irda.h> #include <net/irda/irda.h>
#include <net/irda/irmod.h> #include <net/irda/irmod.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment