]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
clk: Add API to get index of the clock parent
authorSowjanya Komatineni <skomatineni@nvidia.com>
Fri, 16 Aug 2019 19:41:52 +0000 (12:41 -0700)
committerThierry Reding <treding@nvidia.com>
Mon, 11 Nov 2019 12:59:35 +0000 (13:59 +0100)
commitd9b86cc48283112f06738d45031b88bd3f9ecb92
treeeeb57670a444e3530d37377db2b4583fb33bd241
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
clk: Add API to get index of the clock parent

This patch adds a new clk_hw_get_parent_index() function that can be
used to retrieve the index of a given clock's parent. This can be useful
for restoring a clock on system resume.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/clk.c
include/linux/clk-provider.h