media: i2c: ov7251: Fix link_freq validation loop
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 17 Feb 2022 15:57:01 +0000 (15:57 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:44 +0000 (16:04 +0000)
commit680eff5fd3decb3a8d66b1c55eef3043e66296d9
tree456b69abebdf307fd4843170176058b175af89a4
parentc22ac91a8f5c695ed9e62c3bcae7165c69f1d1c0
media: i2c: ov7251: Fix link_freq validation loop

If only one link frequency was configured, then ov7251_check_hwcfg
failed as the conditions weren't checked in the appropriate places.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/ov7251.c