]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: adv7180: Disable test-pattern control on adv7180
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 21 Feb 2025 23:09:07 +0000 (00:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:11 +0000 (14:40 +0200)
commit01b4545bbc23391646354f94441ad2cc75e8e3f8
treedc23cfcad2d457e71eb427367e027a93085f9f31
parenta9edb700846ab1e38e3211cbb6d41d575291305e
media: adv7180: Disable test-pattern control on adv7180

[ Upstream commit a980bc5f56b0292336e408f657f79e574e8067c0 ]

The register that enables selecting a test-pattern to be outputted in
free-run mode (FREE_RUN_PAT_SEL[2:0]) is only available on adv7280 based
devices, not the adv7180 based ones.

Add a flag to mark devices that are capable of generating test-patterns,
and those that are not. And only register the control on supported
devices.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/adv7180.c