Input: atmel_mxt_ts - fix -Wunused-const-variable
authorNathan Huckleberry <nhuck@google.com>
Mon, 1 Jul 2019 08:03:25 +0000 (01:03 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 1 Jul 2019 08:21:16 +0000 (01:21 -0700)
commit5cecc2bccc03f5f7b496b43a80fd5b768d44f13c
tree9730d728aa1cf9130fd452aa31d48c182e66c484
parent8d3c60c7688ec17c084417b7f6ac57a1d5f154e1
Input: atmel_mxt_ts - fix -Wunused-const-variable

Clang produces the following warning

drivers/input/touchscreen/atmel_mxt_ts.c:259:42: warning: unused
variable 'mxt_video_fops' [-Wunused-const-variable]
static const struct v4l2_file_operations mxt_video_fops = {

Since mxt_video_fops is only used inside an ifdef. It should
be moved inside the ifdef.

Link: https://github.com/ClangBuiltLinux/linux/issues/527
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c