diff options
| author | David Lechner <[email protected]> | 2026-03-03 13:54:51 -0600 |
|---|---|---|
| committer | David Lechner <[email protected]> | 2026-03-17 16:34:44 -0500 |
| commit | d09876c4f6ac9cc7d488901064ef5236ec51682e (patch) | |
| tree | 69b0ee0eefc20500f2ad04cbdb99a7f92b76ba60 /include/linux | |
| parent | 00d0ff7f81bfdf341a06fa4b476b669236986d45 (diff) | |
clk: mediatek: add mtk_clk_id_is_* helper functions
Add helper functions to check if a clock ID corresponds to a particular
clock type (mux, gate, fdiv). This simplifies the code and makes it more
readable.
Additionally, it removes the restriction that fdivs_offs < muxes_offs <
gates_offs by making the checking more strict in some places. This will
allow future drivers to not have to define a mapping to meet this
requirement.
Reviewed-by: Julien Stephan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
