aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorMike Turquette <[email protected]>2013-04-11 11:31:37 -0700
committerMike Turquette <[email protected]>2013-04-12 11:23:24 -0700
commitf363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0 (patch)
tree737e5e9ccd32fc757d7435af3e0b0ba0b9cda7bf /lib/mpi/mpi-bit.c
parentd3a1c7be8361e2fbb6affbdb19de47ca48d6c402 (diff)
clk: composite: allow fixed rates & fixed dividers
The composite clock assumes that any clock implementing the .recalc_rate callback will also implement .round_rate and .set_rate. This is not always true; the basic fixed-rate clock will only implement .recalc_rate and a fixed-divider clock may choose to implement .recalc_rate and .round_rate but not .set_rate. Fix this by conditionally registering .round_rate and .set_rate callbacks based on the rate_ops passed in to clk_composite_register. Signed-off-by: Mike Turquette <[email protected]> Cc: Prashant Gaikwad <[email protected]> Tested-by: Emilio López <[email protected]> Cc: Gregory CLEMENT <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions