mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
media: i2c: rk628: set default timing when driver probe
Change-Id: I0f92974fef4a970ae21d24fa685e0f4a94f9e6e4 Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
This commit is contained in:
@@ -2514,6 +2514,8 @@ static int rk628_csi_probe(struct i2c_client *client,
|
||||
struct rk628 *rk628;
|
||||
unsigned long irq_flags;
|
||||
const struct of_device_id *match;
|
||||
struct v4l2_dv_timings default_timing =
|
||||
V4L2_DV_BT_CEA_640X480P59_94;
|
||||
|
||||
dev_info(dev, "RK628 I2C driver version: %02x.%02x.%02x",
|
||||
DRIVER_VERSION >> 16,
|
||||
@@ -2539,6 +2541,7 @@ static int rk628_csi_probe(struct i2c_client *client,
|
||||
csi->rk628 = rk628;
|
||||
csi->dsi.rk628 = rk628;
|
||||
csi->cur_mode = &supported_modes[0];
|
||||
csi->timings = default_timing;
|
||||
csi->hdmirx_irq = client->irq;
|
||||
sd = &csi->sd;
|
||||
sd->dev = dev;
|
||||
|
||||
Reference in New Issue
Block a user