]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: staging: media: imx: imx7-mipi-csis: Make subdev name unique
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 25 Jun 2021 02:26:35 +0000 (04:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:41 +0000 (13:57 +0200)
commitd4d111e26c8da4d16e2f05bb97c0a63007ce06bc
treedf4f3b846da7697c777490cf8e0951ad743cb6ee
parenta5e400961ef0038f71d226405a73321233395ca3
media: staging: media: imx: imx7-mipi-csis: Make subdev name unique

[ Upstream commit 5be7f8c91d25089be847a71b336c13b5bb0db772 ]

When multiple CSIS instances are present in a single graph, they are
currently all named "imx7-mipi-csis.0", which breaks the entity name
uniqueness requirement. Fix it by using the device name to create the
subdev name.

Fixes: 7807063b862b ("media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Jerome Brunet <jbrunet@baylibre.com> # On i.MX8MP
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c