techpack: audio: Increase wsa881x buffer size
This silences the following compiler warning:
../techpack/audio/asoc/codecs/wsa881x.c:392:9: error: 'snprintf' size argument
is too large; destination buffer has size 20, but size argument is 25
[-Werror,-Wfortify-source]
len = snprintf(tmp_buf, 25, "0x%.3x: 0x%.2x\n", i,
^
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
parent
c7a31aecbc
commit
65b7b4410b
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ struct wsa881x_priv {
|
|||
|
||||
#define SWR_SLV_MAX_REG_ADDR 0x390
|
||||
#define SWR_SLV_START_REG_ADDR 0x40
|
||||
#define SWR_SLV_MAX_BUF_LEN 20
|
||||
#define SWR_SLV_MAX_BUF_LEN 25
|
||||
#define BYTES_PER_LINE 12
|
||||
#define SWR_SLV_RD_BUF_LEN 8
|
||||
#define SWR_SLV_WR_BUF_LEN 32
|
||||
|
|
|
|||
Loading…
Reference in a new issue