clk: wm831x: Fix wm831x_clkout_get_parent
authorAxel Lin <axel.lin@ingics.com>
Wed, 1 May 2013 15:32:05 +0000 (23:32 +0800)
committerMike Turquette <mturquette@linaro.org>
Wed, 29 May 2013 06:50:52 +0000 (23:50 -0700)
commitbcc7fd20e2e9df6f29db7d524623e0c7023dffc6
tree92dba86c5718046692db858dabd5c4845cbc80b2
parent6f8b314583c9407bda9f215f25d7b316ae8a7058
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>
drivers/clk/clk-wm831x.c
This page took 0.060561 seconds and 5 git commands to generate.