media: i2c: rk_ircut: add entity flags to distinguish vcm and ircut

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iae2c60b8b904fdb574baf046c73d2058d1572f9a
This commit is contained in:
Zefa Chen
2020-05-27 20:21:02 +08:00
committed by Tao Huang
parent cafbe5dcdc
commit c154f7c2b4

View File

@@ -328,6 +328,7 @@ static int ircut_probe(struct platform_device *pdev)
sd = &ircut->sd;
sd->entity.function = MEDIA_ENT_F_LENS;
sd->entity.flags = 1;
memset(facing, 0, sizeof(facing));
if (strcmp(ircut->module_facing, "back") == 0)