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:
0ctobot 2019-03-24 20:10:41 -04:00 • committed by Sorayukii
commit 65b7b4410b

View file

@ -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