[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181117031828.GZ2089@sirena.org.uk>
Date: Fri, 16 Nov 2018 19:18:28 -0800
From: Mark Brown <broonie@...nel.org>
To: Cheng-Yi Chiang <cychiang@...omium.org>
Cc: linux-kernel@...r.kernel.org, oder_chiou@...ltek.com,
alsa-devel@...a-project.org, dgreid@...omium.org,
tzungbi@...omium.org
Subject: Re: [PATCH] ASoC: rt5663: Fix error handling of regulator_set_load
On Fri, Nov 16, 2018 at 05:28:56PM +0800, Cheng-Yi Chiang wrote:
> The default implementation of regulator_set_load returns
> REGULATOR_MODE_NORMAL, which is positive.
The stub does indeed do that however that just looks like a bug - the
actual implementation returns 0 on success and the other users don't
seem to expect to get a mode value back.
> rt5663_i2c_probe should only do error handling when return value of
> regulator_set_load is negative.
> In this case, rt5663_i2c_probe should return error.
However that's also true so the patch is valid.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists