Disable navigation events in fingerprint reader
Change-Id: I5e5a9eb96c830877232c505b31e3d4d10be35e3e
This commit is contained in:
parent
858c0364a0
commit
068b69ec9a
2 changed files with 3 additions and 4 deletions
|
@ -83,7 +83,7 @@ struct gf_key_map maps[] = {
|
||||||
{ EV_KEY, GF_KEY_INPUT_MENU },
|
{ EV_KEY, GF_KEY_INPUT_MENU },
|
||||||
{ EV_KEY, GF_KEY_INPUT_BACK },
|
{ EV_KEY, GF_KEY_INPUT_BACK },
|
||||||
{ EV_KEY, GF_KEY_INPUT_POWER },
|
{ EV_KEY, GF_KEY_INPUT_POWER },
|
||||||
#if defined(SUPPORT_NAV_EVENT)
|
#ifdef SUPPORT_NAV_EVENT
|
||||||
{ EV_KEY, GF_NAV_INPUT_UP },
|
{ EV_KEY, GF_NAV_INPUT_UP },
|
||||||
{ EV_KEY, GF_NAV_INPUT_DOWN },
|
{ EV_KEY, GF_NAV_INPUT_DOWN },
|
||||||
{ EV_KEY, GF_NAV_INPUT_RIGHT },
|
{ EV_KEY, GF_NAV_INPUT_RIGHT },
|
||||||
|
@ -249,6 +249,7 @@ static int gfspi_ioctl_clk_uninit(struct gf_dev *data)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SUPPORT_NAV_EVENT
|
||||||
static void nav_event_input(struct gf_dev *gf_dev, gf_nav_event_t nav_event)
|
static void nav_event_input(struct gf_dev *gf_dev, gf_nav_event_t nav_event)
|
||||||
{
|
{
|
||||||
uint32_t nav_input = 0;
|
uint32_t nav_input = 0;
|
||||||
|
@ -317,7 +318,7 @@ static void nav_event_input(struct gf_dev *gf_dev, gf_nav_event_t nav_event)
|
||||||
input_sync(gf_dev->input);
|
input_sync(gf_dev->input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void gf_kernel_key_input(struct gf_dev *gf_dev, struct gf_key *gf_key)
|
static void gf_kernel_key_input(struct gf_dev *gf_dev, struct gf_key *gf_key)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,8 +17,6 @@ enum FP_MODE{
|
||||||
GF_DEBUG_MODE = 0x56
|
GF_DEBUG_MODE = 0x56
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SUPPORT_NAV_EVENT
|
|
||||||
|
|
||||||
#if defined(SUPPORT_NAV_EVENT)
|
#if defined(SUPPORT_NAV_EVENT)
|
||||||
#define GF_NAV_INPUT_UP KEY_UP
|
#define GF_NAV_INPUT_UP KEY_UP
|
||||||
#define GF_NAV_INPUT_DOWN KEY_DOWN
|
#define GF_NAV_INPUT_DOWN KEY_DOWN
|
||||||
|
|
Loading…
Add table
Reference in a new issue