input: touchscreen: nt36xxx: fix snprintf warning
authorKhusika Dhamar Gusti <mail@khusika.com>
Fri, 13 Sep 2019 16:05:32 +0000 (23:05 +0700)
committerStricted <info@stricted.net>
Mon, 21 Sep 2020 21:06:53 +0000 (21:06 +0000)
commitfed424956dae801e567e7cd1d3532349ff1074c6
treee04dd694bf07ca41da2e9d180e31eae551d3b344
parent2dda0787fb8580d3caf2c05044a891dcdf1ded08
input: touchscreen: nt36xxx: fix snprintf warning

Fixes the following clang warning:

../drivers/input/touchscreen/nt36xxx/nt36xxx_mp_ctrlram.c:1293:3: error: 'snprintf' size argument is too large; destination buffer has size 32, $
                snprintf(mpcriteria, PAGE_SIZE, "novatek-mp-criteria-%04X", ts->nvt_pid);
                ^
1 error generated.

Change-Id: Ieb3331a226cb6e183aaac2f22e7e8dccf27af7fc
Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
drivers/input/touchscreen/nt36xxx/nt36xxx_mp_ctrlram.c