Skip to content

Commit 24672bd

Browse files
Dan Carpenterdtor
authored andcommitted
Input: synaptics-rmi4 - using logical instead of bitwise AND
There is a typo so we have && instead of &. Fixes: ff8f837 ('Input: synaptics-rmi4 - add support for 2D sensors and F11') Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Andrew Duggan <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 9c6ba45 commit 24672bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/rmi4/rmi_f11.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ static int rmi_f11_get_query_parameters(struct rmi_device *rmi_dev,
775775
sensor_query->has_abs = !!(query_buf[0] & RMI_F11_HAS_ABS);
776776
sensor_query->has_gestures = !!(query_buf[0] & RMI_F11_HAS_GESTURES);
777777
sensor_query->has_sensitivity_adjust =
778-
!!(query_buf[0] && RMI_F11_HAS_SENSITIVITY_ADJ);
778+
!!(query_buf[0] & RMI_F11_HAS_SENSITIVITY_ADJ);
779779
sensor_query->configurable = !!(query_buf[0] & RMI_F11_CONFIGURABLE);
780780

781781
sensor_query->nr_x_electrodes =
@@ -803,7 +803,7 @@ static int rmi_f11_get_query_parameters(struct rmi_device *rmi_dev,
803803
sensor_query->has_bending_correction =
804804
!!(query_buf[0] & RMI_F11_HAS_BENDING_CORRECTION);
805805
sensor_query->has_large_object_suppression =
806-
!!(query_buf[0] && RMI_F11_HAS_LARGE_OBJECT_SUPPRESSION);
806+
!!(query_buf[0] & RMI_F11_HAS_LARGE_OBJECT_SUPPRESSION);
807807
sensor_query->has_jitter_filter =
808808
!!(query_buf[0] & RMI_F11_HAS_JITTER_FILTER);
809809
query_size++;

0 commit comments

Comments
 (0)