• Jeff LaBundy's avatar
    Input: iqs269a - add support for slider gestures · 00521a9b
    Jeff LaBundy authored
    
    
    This patch adds support for slider gestures that can be expressed
    by the device. Each gesture (e.g. tap or hold) can be mapped to a
    unique keycode for either slider 0 or 1.
    
    With this change, raw slider coordinates are reported only if the
    slider has no keycodes defined. This prevents unwanted mouse cur-
    sor movement when expressing axial gestures (e.g. swipe) and also
    eliminates some unnecessary I2C traffic.
    
    Different revisions of silicon use different tap and swipe timeout
    step sizes. Apply an appropriate scaling factor depending on which
    revision is found.
    
    To facilitate this change, store the iqs269_ver_info struct in the
    driver's private data so that other functions can use it after the
    driver has probed.
    
    Last but not least, a former reserved field in iqs269_ver_info now
    contains useful information; give it a name (fw_num).
    Signed-off-by: default avatarJeff LaBundy <jeff@labundy.com>
    Link: https://lore.kernel.org/r/ZZMaT46WQq1/Nrsb@nixie71
    
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    00521a9b
iqs269a.c 47 KB