summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2019-07-01 17:41:51 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2019-11-01 12:32:00 +0100
commit826c6a1773084c737abf09dccc591f9a59b8b812 (patch)
tree5fbef92219693f23b6e016a45be21f12750c9b41 /drivers/thunderbolt
parentthunderbolt: Convert DP adapter register names to follow the USB4 spec (diff)
downloadlinux-826c6a1773084c737abf09dccc591f9a59b8b812.tar.xz
linux-826c6a1773084c737abf09dccc591f9a59b8b812.zip
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 <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/tb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 1565af2e48cb..455ca490ea87 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)