Skip to content

Commit 310ca2a

Browse files
aduggan-synadtor
authored andcommitted
Input: synaptics-rmi4 - remove unused result_bits mask
The result_bits mask is no longer used by the driver and should be removed. Signed-off-by: Andrew Duggan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 5d40d95 commit 310ca2a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/input/rmi4/rmi_f11.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ struct f11_data {
510510
struct rmi_2d_sensor_platform_data sensor_pdata;
511511
unsigned long *abs_mask;
512512
unsigned long *rel_mask;
513-
unsigned long *result_bits;
514513
};
515514

516515
enum f11_finger_state {
@@ -1057,7 +1056,7 @@ static int rmi_f11_initialize(struct rmi_function *fn)
10571056
/*
10581057
** init instance data, fill in values and create any sysfs files
10591058
*/
1060-
f11 = devm_kzalloc(&fn->dev, sizeof(struct f11_data) + mask_size * 3,
1059+
f11 = devm_kzalloc(&fn->dev, sizeof(struct f11_data) + mask_size * 2,
10611060
GFP_KERNEL);
10621061
if (!f11)
10631062
return -ENOMEM;
@@ -1076,8 +1075,6 @@ static int rmi_f11_initialize(struct rmi_function *fn)
10761075
+ sizeof(struct f11_data));
10771076
f11->rel_mask = (unsigned long *)((char *)f11
10781077
+ sizeof(struct f11_data) + mask_size);
1079-
f11->result_bits = (unsigned long *)((char *)f11
1080-
+ sizeof(struct f11_data) + mask_size * 2);
10811078

10821079
set_bit(fn->irq_pos, f11->abs_mask);
10831080
set_bit(fn->irq_pos + 1, f11->rel_mask);

0 commit comments

Comments
 (0)