[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YM8jwosKEbNlVXkp@vkoul-mobl>
Date: Sun, 20 Jun 2021 16:47:22 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Richard Fitzgerald <rf@...nsource.cirrus.com>
Cc: yung-chuan.liao@...ux.intel.com,
pierre-louis.bossart@...ux.intel.com, sanyog.r.kale@...el.com,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
patches@...nsource.cirrus.com
Subject: Re: [PATCH v2] soundwire: bus: Make sdw_nwrite() data pointer
argument const
On 16-06-21, 15:59, Richard Fitzgerald wrote:
> Idiomatically, write functions should take const pointers to the
> data buffer, as they don't change the data. They are also likely
> to be called from functions that receive a const data pointer.
>
> Internally the pointer is passed to function/structs shared with
> the read functions, requiring a cast, but this is an implementation
> detail that should be hidden by the public API.
Applied, thanks
--
~Vinod
Powered by blists - more mailing lists