[media] vivid: fix typo causing incorrect CEC physical addresses
authorHans Verkuil <hansverk@cisco.com>
Thu, 14 Jul 2016 09:31:32 +0000 (06:31 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 15 Jul 2016 16:20:28 +0000 (13:20 -0300)
Fix typo in vivid that caused all HDMI outputs to have the same
physical address.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-core.c

index 9966828bb578f526ca602297d1a4cb0fa0680ab9..7f937136c3f5b76f0c3b8117352780782445f5bf 100644 (file)
@@ -1232,7 +1232,7 @@ static int vivid_create_instance(struct platform_device *pdev, int inst)
                                goto unreg_dev;
                        }
                        bus_cnt++;
-                       if (bus_cnt <= in_type_counter[HDMI])
+                       if (bus_cnt <= out_type_counter[HDMI])
                                cec_s_phys_addr(adap, bus_cnt << 12, false);
                        else
                                cec_s_phys_addr(adap, 0x1000, false);