summaryrefslogtreecommitdiffstats
path: root/drivers/pps
diff options
context:
space:
mode:
authorLouis Taylor <louis@kragniz.eu>2019-03-02 15:18:36 +0100
committerWolfram Sang <wsa@the-dreams.de>2019-03-12 14:09:16 +0100
commit60f7691c624b41a05bfc3493d9b0519e7951b7ef (patch)
tree3bda3a4ce764ebf46b267b91df14c4b9916f1dc4 /drivers/pps
parenti2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf() (diff)
downloadlinux-60f7691c624b41a05bfc3493d9b0519e7951b7ef.tar.xz
linux-60f7691c624b41a05bfc3493d9b0519e7951b7ef.zip
i2c: sis630: correct format strings
When compiling with -Wformat, clang warns: drivers/i2c/busses/i2c-sis630.c:482:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] smbus_base + SMB_STS, ^~~~~~~~~~~~~~~~~~~~ drivers/i2c/busses/i2c-sis630.c:483:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] smbus_base + SMB_STS + SIS630_SMB_IOREGION - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/i2c/busses/i2c-sis630.c:531:37: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] "SMBus SIS630 adapter at %04hx", smbus_base + SMB_STS); ~~~~~ ^~~~~~~~~~~~~~~~~~~~ This patch fixes the format strings to use the format type for int. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor <louis@kragniz.eu> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/pps')
0 files changed, 0 insertions, 0 deletions