rockchip: video: mipi: Fix phy frequency setting
authorRichard Röjfors <richard.rojfors@gmail.com>
Wed, 14 Nov 2018 13:13:53 +0000 (14:13 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 30 Nov 2018 18:03:16 +0000 (19:03 +0100)
commit4c2808fd06c3f75df302af6a1354f3ec12278980
tree152e78d6366a7d373b43752760922eff8b9c27fa
parentd57720a5fc0a7452195cf3dcdb36cca99497d83a
rockchip: video: mipi: Fix phy frequency setting

There was an incorrect check when looping and finding the first
fast enough frequency in the freq_rang table. The code did
actually return the first that was either exactly correct or
too slow.

Signed-off-by: Richard Röjfors <richard@puffinpack.se>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/video/rockchip/rk_mipi.c