summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wsa881x.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2020-08-10 14:08:33 -0700
committerLinux Build Service Account <lnxbuild@localhost>2020-08-10 14:08:33 -0700
commit8b8e08afe2147af3ee01e54b6478f81b232a12b9 (patch)
tree9b87970636dbaee6f71f231543a44877c045d8af /sound/soc/codecs/wsa881x.c
parentf8c4d4a4715487f733875066d66eeb82c3a44734 (diff)
parent4a1a4fb57a7c84060e82d8e59b7851f1ed7e107f (diff)
Merge 4a1a4fb57a7c84060e82d8e59b7851f1ed7e107f on remote branch
Change-Id: Idc309aa4aa97803678f4c064361e3e11cd757d10
Diffstat (limited to 'sound/soc/codecs/wsa881x.c')
-rw-r--r--sound/soc/codecs/wsa881x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c
index 0c672fd89652..df2b5ff24054 100644
--- a/sound/soc/codecs/wsa881x.c
+++ b/sound/soc/codecs/wsa881x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2018,2020 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -362,8 +362,8 @@ static ssize_t wsa881x_swrslave_reg_show(char __user *ubuf, size_t count,
continue;
swr_read(dbgwsa881x->swr_slave, devnum,
i, &reg_val, 1);
- len = snprintf(tmp_buf, 25, "0x%.3x: 0x%.2x\n", i,
- (reg_val & 0xFF));
+ len = snprintf(tmp_buf, sizeof(tmp_buf), "0x%.3x: 0x%.2x\n",
+ i, (reg_val & 0xFF));
if ((total + len) >= count - 1)
break;
if (copy_to_user((ubuf + total), tmp_buf, len)) {