OSDN Git Service

OPP: pstate is only valid for genpd OPP tables
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 14 Jun 2023 10:27:43 +0000 (15:57 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 19 Jun 2023 04:20:02 +0000 (09:50 +0530)
commit84cb7ff35fcf7c0b552f553a3f2db9c3e92fc707
tree491fdd3db54ade951a5664d75f007ab8b98c8639
parent04bd2eafee153b9cc4b411d4a24d32b1ec2ce41c
OPP: pstate is only valid for genpd OPP tables

It is not very clear right now that the `pstate` field is only valid for
genpd OPP tables and not consumer tables. And there is no checking for
the same at various places.

Add checks in place to verify that and make it clear to the reader.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Tested-by: Bjorn Andersson <quic_bjorande@quicinc.com>
drivers/opp/core.c
drivers/opp/debugfs.c
drivers/opp/of.c