提交 826c6a17 编写于 作者: M Mika Westerberg

thunderbolt: Make tb_sw_write() take const parameter

The function does not modify the argument in any way so make it const.
Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
上级 98176380
......@@ -399,7 +399,7 @@ static inline int tb_sw_read(struct tb_switch *sw, void *buffer,
length);
}
static inline int tb_sw_write(struct tb_switch *sw, void *buffer,
static inline int tb_sw_write(struct tb_switch *sw, const void *buffer,
enum tb_cfg_space space, u32 offset, u32 length)
{
if (sw->is_unplugged)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册