mirror-linux/include/linux/soundwire
Richard Fitzgerald 031e668bc1 soundwire: bus: Make sdw_nwrite() data pointer argument const
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.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210616145901.29402-1-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-06-20 16:46:14 +05:30
..
sdw.h soundwire: bus: Make sdw_nwrite() data pointer argument const 2021-06-20 16:46:14 +05:30
sdw_intel.h soundwire: intel: move to auxiliary bus 2021-06-14 10:12:26 +05:30
sdw_registers.h Char / Misc driver updates for 5.11-rc1 2020-12-15 14:10:09 -08:00
sdw_type.h soundwire: bus_type: introduce sdw_slave_type and sdw_master_type 2020-05-19 12:44:34 +05:30