File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,6 @@ struct f11_data {
510
510
struct rmi_2d_sensor_platform_data sensor_pdata ;
511
511
unsigned long * abs_mask ;
512
512
unsigned long * rel_mask ;
513
- unsigned long * result_bits ;
514
513
};
515
514
516
515
enum f11_finger_state {
@@ -1057,7 +1056,7 @@ static int rmi_f11_initialize(struct rmi_function *fn)
1057
1056
/*
1058
1057
** init instance data, fill in values and create any sysfs files
1059
1058
*/
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 ,
1061
1060
GFP_KERNEL );
1062
1061
if (!f11 )
1063
1062
return - ENOMEM ;
@@ -1076,8 +1075,6 @@ static int rmi_f11_initialize(struct rmi_function *fn)
1076
1075
+ sizeof (struct f11_data ));
1077
1076
f11 -> rel_mask = (unsigned long * )((char * )f11
1078
1077
+ sizeof (struct f11_data ) + mask_size );
1079
- f11 -> result_bits = (unsigned long * )((char * )f11
1080
- + sizeof (struct f11_data ) + mask_size * 2 );
1081
1078
1082
1079
set_bit (fn -> irq_pos , f11 -> abs_mask );
1083
1080
set_bit (fn -> irq_pos + 1 , f11 -> rel_mask );
You can’t perform that action at this time.
0 commit comments