]> www.infradead.org Git - users/jedix/linux-maple.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)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 25 Feb 2025 08:14:05 +0000 (09:14 +0100)
commita980bc5f56b0292336e408f657f79e574e8067c0
tree380c8c997d8ef3f7da003f0fb8fa3512ae73d5e4
parent450acf0840232eaf6eb7a80da11cf492e57498e8
media: adv7180: Disable test-pattern control on adv7180

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>
drivers/media/i2c/adv7180.c