drm/i2c: tda998x: correct PLL divider calculation
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 Aug 2018 09:27:15 +0000 (10:27 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 7 Aug 2018 09:32:03 +0000 (10:32 +0100)
commit926a299c42e38bbe8bb909eae0146e676b66afe4
tree76a65a5577508571a4789aa92bf28b3ecb02d5b2
parenta3d335f5de7cdd714737a9f8bdcc7b205b0f8d5e
drm/i2c: tda998x: correct PLL divider calculation

The serializer PLL divider is a power-of-two divider, so our calculation
which assumes that it's a numerical divider is incorrect.  Replace it
with one that results in a power-of-two divider value instead.

Tested with all supported modes with a Samsung S24C750.

Tested-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c