diff options
author | Florian Fainelli <[email protected]> | 2012-07-23 14:44:36 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2012-07-23 14:14:11 +0100 |
commit | d76ea24ac4c92e7e0700e047fcbf716c4de2b107 (patch) | |
tree | f508efb5d6538ac20f55086ead926b43f4ad7c99 /lib/string_helpers.c | |
parent | f814f9ac5a819542fdf6db97305db9da603c1eeb (diff) |
spi/bcm63xx: fix clock configuration selection
We are currently using an inferior or equal operator for comparing
the transfer frequency with the clock frequency table. Because of
this, we always end up selecting 20Mhz as a frequency, due to the
inequality transfer hz <= 20 Mhz being always true. Fix this by
reversing the inequality, which is how the comparison should be done.
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions