Re: [PATCH] regulator: rt6160: Convert to use regulator_set_ramp_delay_regmap

From: cy_huang(黃啟原)
Date: Thu Jun 03 2021 - 06:41:52 EST


> cy_huang(黃啟原) <cy_huang@xxxxxxxxxxx> 於 2021年6月3日 週四 下午6:20寫道:
> >
> >
> > Hi, Axel:> Use regulator_set_ramp_delay_regmap instead of open-coded.
> > >
> > >
> > There's some reason.
> > You can refer to https://lkml.org/lkml/2021/6/1/1145.
> >
> > It's because our ramp value order is from small to large, not large to
> > small.
> > It conflicts with find_closest_bigger value chosen logic.
> I have verified the rt6160_set_ramp_delay() behavior exactly the same as
> regulator_set_ramp_delay_regmap. (both functions get the same selector
> for a given delay)
>
> Could you check if this patch works?
Sure.
>
> Thanks,
> Axel
************* Email Confidentiality Notice ********************

The information contained in this e-mail message (including any attachments) may be confidential, proprietary, privileged, or otherwise exempt from disclosure under applicable laws. It is intended to be conveyed only to the designated recipient(s). Any use, dissemination, distribution, printing, retaining or copying of this e-mail (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an intended recipient of this e-mail, or believe that you have received this e-mail in error, please notify the sender immediately (by replying to this e-mail), delete any and all copies of this e-mail (including any attachments) from your system, and do not disclose the content of this e-mail to any other person. Thank you!