[PATCH v2] soundwire: bus: Make sdw_nwrite() data pointer argument const

Vinod Koul vkoul at kernel.org
Sun Jun 20 13:17:22 CEST 2021


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


More information about the Alsa-devel mailing list