Thank you PeterChan,
I got understand after went thru the driver source. thank you
I have one more doubt to understand..in my driver strucures like
static int se4500_s_config(struct v4l2_subdev* pSubdev, void* pPlatform_data)
{
struct se4500_dev* pSE4500 = to_se4500(pSubdev);
printk("%s %s %d\n",__FILE__,__func__,__LINE__);
if ( pPlatform_data == NULL )
return(-ENODEV);
pSE4500->pdata = pPlatform_data;
return(se4500_dev_init(pSubdev));
}
static const struct v4l2_subdev_tuner_ops se4500_tuner_ops ={
.s_config = se4500_s_config,
};
static const struct v4l2_subdev_ops se4500_ops ={
.core = &se4500_core_ops,
.file = &se4500_subdev_file_ops,
.video = &se4500_video_ops,
.pad = &se4500_pad_ops,
.tuner = &se4500_tuner_ops,
};
In probe v4l2_i2c_subdev_init(&pSE4500->subdev, pClient, &se4500_ops);
How se4500_s_config function would get called in driver.
This is not getting called in driver. could you please give some suggestion on this.
thank you