23 #include <linux/module.h>
24 #include <linux/types.h>
25 #include <linux/slab.h>
27 #include <asm/uaccess.h>
28 #include <linux/i2c.h>
29 #include <linux/videodev2.h>
82 #ifdef CONFIG_VIDEO_ADV_DEBUG
102 struct i2c_client *client = v4l2_get_subdevdata(sd);
119 struct i2c_client *client = v4l2_get_subdevdata(sd);
124 static int m52790_log_status(
struct v4l2_subdev *sd)
138 .log_status = m52790_log_status,
139 .g_chip_ident = m52790_g_chip_ident,
140 #ifdef CONFIG_VIDEO_ADV_DEBUG
141 .g_register = m52790_g_register,
142 .s_register = m52790_s_register,
147 .s_routing = m52790_s_routing,
151 .s_routing = m52790_s_routing,
155 .core = &m52790_core_ops,
156 .audio = &m52790_audio_ops,
157 .video = &m52790_video_ops,
164 static int m52790_probe(
struct i2c_client *client,
174 v4l_info(client,
"chip found @ 0x%x (%s)\n",
189 static int m52790_remove(
struct i2c_client *client)
191 struct v4l2_subdev *sd = i2c_get_clientdata(client);
211 .probe = m52790_probe,
212 .remove = m52790_remove,
213 .id_table = m52790_id,