]> git.ipfire.org Git - thirdparty/linux.git/commit
media: v4l2-common: Always register clock with device-specific name
authorPaul Cercueil <paul@crapouillou.net>
Tue, 31 Mar 2026 08:43:40 +0000 (10:43 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 6 May 2026 07:17:37 +0000 (09:17 +0200)
commit0b42657bea6ba635226e8ef551076d024ceacdc9
tree918d2c583284803d4b14c828a43deaf0e7e0d10b
parentcaced3578bf9f104a4aaad8f46c4c719e705d9a6
media: v4l2-common: Always register clock with device-specific name

If we need to register a dummy fixed-frequency clock, always register it
using a device-specific name.

This supports the use case where a system has two of the same sensor,
meaning two instances of the same driver, which previously both tried
(and failed) to create a clock with the same name.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/v4l2-core/v4l2-common.c