[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210913142307.GF4283@sirena.org.uk>
Date: Mon, 13 Sep 2021 15:23:07 +0100
From: Mark Brown <broonie@...nel.org>
To: Sameer Pujar <spujar@...dia.com>
Cc: lgirdwood@...il.com, robh+dt@...nel.org, thierry.reding@...il.com,
jonathanh@...dia.com, catalin.marinas@....com, will@...nel.org,
perex@...ex.cz, tiwai@...e.com, kuninori.morimoto.gx@...esas.com,
sharadg@...dia.com, alsa-devel@...a-project.org,
devicetree@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 06/13] ASoC: tegra: Add Tegra210 based MVC driver
On Mon, Sep 13, 2021 at 10:32:32AM +0530, Sameer Pujar wrote:
> On 9/3/2021 11:43 PM, Mark Brown wrote:
> > > + err |= regmap_update_bits(mvc->regmap, TEGRA210_MVC_SWITCH,
> > > + TEGRA210_MVC_VOLUME_SWITCH_MASK,
> > > + TEGRA210_MVC_VOLUME_SWITCH_TRIGGER);
> > > +
> > > +end:
> > > + pm_runtime_put(cmpnt->dev);
> > > + return err;
> > > +}
> > _put() should return 0 if there's no change or 1 for a change.
> So this means, no need to return any error value and just return 0 in such
> cases?
If there's an error you should return that instead.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists