opp: Expose of-node's name in debugfs
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 10 Feb 2022 09:07:53 +0000 (14:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:11 +0000 (20:59 +0200)
commit7295544bcf562d23f89552353825481dd29ef3ea
tree2ea40bf9819f693800159ab19ff8ce3eb07aa7a8
parentea1f2958413662848317760b90d658cfd727c8c5
opp: Expose of-node's name in debugfs

[ Upstream commit 021dbecabc93b1610b5db989d52a94e0c6671136 ]

It is difficult to find which OPPs are active at the moment, specially
if there are multiple OPPs with same frequency available in the device
tree (controlled by supported hardware feature).

Expose name of the DT node to find out the exact OPP.

While at it, also expose level field.

Reported-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/opp/debugfs.c
drivers/opp/opp.h