> When regulator consumer attempts to set enabled DVS regulator voltage, > the driver aborts with "Only DVS bucks can be changed when enabled". > In case the regulator is already set to specified voltage, do nothing > instead of failing outright. > When regulator consumer attempts to set enables regulator which cannot > be controlled because it is already always enabled, the driver aborts > with -EINVAL. Again, do nothing in such case and return 0, because the > request is really fulfilled, the regulator is enabled. > Signed-off-by: Marek Vasut <ma...@denx.de> > Cc: Matti Vaittinen <matti.vaitti...@fi.rohmeurope.com> Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de =====================================================================