[PATCH 2/3] opp: Add devres wrapper for dev_pm_opp_set_prop_name

Frank Lee tiny.windzz at gmail.com
Wed Oct 28 11:02:54 UTC 2020


On Wed, Oct 28, 2020 at 6:29 PM Viresh Kumar <viresh.kumar at linaro.org> wrote:
>
> On 12-10-20, 21:55, Frank Lee wrote:
> > From: Yangtao Li <tiny.windzz at gmail.com>
> >
> > Add devres wrapper for dev_pm_opp_set_prop_name() to simplify driver
> > code.
> >
> > Signed-off-by: Yangtao Li <tiny.windzz at gmail.com>
> > Signed-off-by: Yangtao Li <frank at allwinnertech.com>
> > ---
> >  drivers/opp/core.c     | 39 +++++++++++++++++++++++++++++++++++++++
> >  include/linux/pm_opp.h |  6 ++++++
> >  2 files changed, 45 insertions(+)
>
> On a second thought I am looking at dropping this one as you haven't
> added any users yet and I am afraid it will stay unused.

Now it looks like that dev_pm_opp_set_prop_name() is used relatively less.
Maybe we can wait until a caller, and then pick up the patch.

MBR,
Yangtao


More information about the dri-devel mailing list