Input: cyapa - add proximity support for gen5 and gen6 modules
Gen5 and Gen6 trackpad devices are able to detect and report object proximity data/events, add this function support in the cyapa driver through the ABS_DISTANCE event. Signed-off-by: Dudley Du <dudl@cypress.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:

committed by
Dmitry Torokhov

vanhempi
c2c06c41f7
commit
945525ee60
@@ -999,6 +999,11 @@ static int cyapa_gen3_set_power_mode(struct cyapa *cyapa, u8 power_mode,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cyapa_gen3_set_proximity(struct cyapa *cyapa, bool enable)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static int cyapa_gen3_get_query_data(struct cyapa *cyapa)
|
||||
{
|
||||
u8 query_data[QUERY_DATA_SIZE];
|
||||
@@ -1243,4 +1248,6 @@ const struct cyapa_dev_ops cyapa_gen3_ops = {
|
||||
.irq_cmd_handler = cyapa_gen3_irq_cmd_handler,
|
||||
.sort_empty_output_data = cyapa_gen3_empty_output_data,
|
||||
.set_power_mode = cyapa_gen3_set_power_mode,
|
||||
|
||||
.set_proximity = cyapa_gen3_set_proximity,
|
||||
};
|
||||
|
Viittaa uudesa ongelmassa
Block a user