Input: synaptics-rmi4 - remove pointer to rmi_function in f12_data
authorAndrew Duggan <aduggan@synaptics.com>
Thu, 14 Jul 2016 16:37:11 +0000 (09:37 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Jul 2016 16:43:42 +0000 (09:43 -0700)
The pointer to struct rmi_function in f12_data is never set and was never
used. The fn pointer is also stored in rmi_2d_sensor which is a member of
f12_data.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Nick Dyer <nick@shmanahar.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f12.c

index 8dd3fb5e1f9433f013f18c51728205c425a61560..123f2b495673fdc4cf2c65652698e7817b75eec9 100644 (file)
@@ -27,7 +27,6 @@ enum rmi_f12_object_type {
 };
 
 struct f12_data {
-       struct rmi_function *fn;
        struct rmi_2d_sensor sensor;
        struct rmi_2d_sensor_platform_data sensor_pdata;