From: Mika Westerberg Date: Mon, 1 Jul 2019 15:41:51 +0000 (+0300) Subject: thunderbolt: Make tb_sw_write() take const parameter X-Git-Tag: v5.10.7~3800^2~45^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=826c6a1773084c737abf09dccc591f9a59b8b812;p=platform%2Fkernel%2Flinux-rpi.git 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: Mika Westerberg --- diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index 1565af2..455ca49 100644 --- a/drivers/thunderbolt/tb.h +++ b/drivers/thunderbolt/tb.h @@ -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)