diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2018-02-14 21:08:56 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-02-15 14:40:24 +0100 |
commit | a5ebc3368ef7c77da5a03ad52834520a634a36ef (patch) | |
tree | 0997c61268d7a241b2c3036257de6793d0e535d8 /drivers/video | |
parent | d897ef56faf9bdb36e931251d0b70b10ebb03a14 (diff) | |
download | lwn-a5ebc3368ef7c77da5a03ad52834520a634a36ef.tar.gz lwn-a5ebc3368ef7c77da5a03ad52834520a634a36ef.zip |
clk: sunxi-ng: Use u64 for calculation of nkmp rate
When parent rate is 24MHz and multiplier N >= 180, intermediate clock
rate doesn't fit in 32 bit variable anymore.
Because of that, introduce function for calculating clock rate which
uses 64 bit variable for intermediate result.
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions