mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 23:00:38 +02:00
ubb-la/ubb-la.c (frequency): adapt use of mmcclk for API change
This commit is contained in:
parent
66a487b634
commit
85bda4c41d
@ -335,7 +335,7 @@ static void frequency(struct mmcclk *clk, int hz)
|
|||||||
{
|
{
|
||||||
struct mmcclk mmc;
|
struct mmcclk mmc;
|
||||||
|
|
||||||
mmcclk_first(&mmc, 0);
|
mmcclk_first(&mmc, 0, MMCCLK_FLAG_RD_ONLY);
|
||||||
*clk = mmc;
|
*clk = mmc;
|
||||||
while (mmcclk_next(&mmc))
|
while (mmcclk_next(&mmc))
|
||||||
if (fabs(clk->bus_clk_hz-hz) > fabs(mmc.bus_clk_hz-hz) ||
|
if (fabs(clk->bus_clk_hz-hz) > fabs(mmc.bus_clk_hz-hz) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user