core.c (a5893928bb179d67ca1d44a8f66c990480ba541d) core.c (034d6aac2160b732d58d82e34aaf2c058a8f72fa)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Generic OPP Interface
4 *
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
6 * Nishanth Menon
7 * Romit Dasgupta
8 * Kevin Hilman

--- 456 unchanged lines hidden (view full) ---

465
466 return count;
467}
468EXPORT_SYMBOL_GPL(dev_pm_opp_get_opp_count);
469
470/* Helpers to read keys */
471static unsigned long _read_freq(struct dev_pm_opp *opp, int index)
472{
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Generic OPP Interface
4 *
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
6 * Nishanth Menon
7 * Romit Dasgupta
8 * Kevin Hilman

--- 456 unchanged lines hidden (view full) ---

465
466 return count;
467}
468EXPORT_SYMBOL_GPL(dev_pm_opp_get_opp_count);
469
470/* Helpers to read keys */
471static unsigned long _read_freq(struct dev_pm_opp *opp, int index)
472{
473 return opp->rates[0];
473 return opp->rates[index];
474}
475
476static unsigned long _read_level(struct dev_pm_opp *opp, int index)
477{
478 return opp->level;
479}
480
481static unsigned long _read_bw(struct dev_pm_opp *opp, int index)

--- 2719 unchanged lines hidden ---
474}
475
476static unsigned long _read_level(struct dev_pm_opp *opp, int index)
477{
478 return opp->level;
479}
480
481static unsigned long _read_bw(struct dev_pm_opp *opp, int index)

--- 2719 unchanged lines hidden ---