@@ -581,7 +581,7 @@ static int input_fetch_keycode(struct input_dev *dev, int scancode)
}
}
-static int input_default_getkeycode(struct input_dev *dev,
+int input_default_getkeycode(struct input_dev *dev,
unsigned int scancode,
unsigned int *keycode)
{
@@ -595,8 +595,9 @@ static int input_default_getkeycode(struct input_dev *dev,
return 0;
}
+EXPORT_SYMBOL(input_default_getkeycode);
-static int input_default_setkeycode(struct input_dev *dev,
+int input_default_setkeycode(struct input_dev *dev,
unsigned int scancode,
unsigned int keycode)
{
@@ -645,6 +646,7 @@ static int input_default_setkeycode(struct input_dev *dev,
return 0;
}
+EXPORT_SYMBOL(input_default_setkeycode);
/**
* input_get_keycode - retrieve keycode currently mapped to a given scancode
@@ -181,8 +181,8 @@ void sparse_keymap_free(struct input_dev *dev)
kfree(dev->keycode);
dev->keycode = NULL;
dev->keycodemax = 0;
- dev->getkeycode = NULL;
- dev->setkeycode = NULL;
+ dev->getkeycode = input_default_getkeycode;
+ dev->setkeycode = input_default_setkeycode;
}
EXPORT_SYMBOL(sparse_keymap_free);
@@ -1417,6 +1417,13 @@ static inline void input_set_abs_params(struct input_dev *dev, int axis, int min
dev->absbit[BIT_WORD(axis)] |= BIT_MASK(axis);
}
+int input_default_getkeycode(struct input_dev *dev,
+ unsigned int scancode,
+ unsigned int *keycode);
+int input_default_setkeycode(struct input_dev *dev,
+ unsigned int scancode,
+ unsigned int keycode);
+
int input_get_keycode(struct input_dev *dev,
unsigned int scancode, unsigned int *keycode);
int input_set_keycode(struct input_dev *dev,