diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-05-01 23:32:05 +0800 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-05-28 23:50:52 -0700 |
commit | bcc7fd20e2e9df6f29db7d524623e0c7023dffc6 (patch) | |
tree | 92dba86c5718046692db858dabd5c4845cbc80b2 /security | |
parent | 6f8b314583c9407bda9f215f25d7b316ae8a7058 (diff) | |
download | op-kernel-dev-bcc7fd20e2e9df6f29db7d524623e0c7023dffc6.zip op-kernel-dev-bcc7fd20e2e9df6f29db7d524623e0c7023dffc6.tar.gz |
clk: wm831x: Fix wm831x_clkout_get_parent
Current code looks strange because calling wm831x_clkout_set_parent() with 0 as
parent parameter, wm831x_clkout_get_parent() will return 1.
According to the datasheet:
R16528 (4090h) Clock Control1
BIT 0: CLKOUT output source select
0 = FLL output
1 = 32.768kHz oscillator
Thus fix the entry order in wm831x_clkout_parents[] to make it has
the same meaning as the datasheet and make the return value
of wm831x_clkout_get_parent() consistent with the parent pass to
wm831x_clkout_set_parent().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions