Ejemplo n.º 1
0
static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi,
	struct hid_field *field, struct hid_usage *usage,
	unsigned long **bit, int *max)
{
	int ret = 0;

	if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE == hdev->product)
		ret = samsung_kbd_mouse_input_mapping(hdev,
			hi, field, usage, bit, max);
	else if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD == hdev->product)
		ret = samsung_kbd_input_mapping(hdev,
			hi, field, usage, bit, max);

	return ret;
}
Ejemplo n.º 2
0
static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi,
	struct hid_field *field, struct hid_usage *usage,
	unsigned long **bit, int *max)
{
	int ret = 0;

	if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE == hdev->product)
		ret = samsung_kbd_mouse_input_mapping(hdev,
			hi, field, usage, bit, max);
/* SS_BLUEZ_BT(changeon.park) 2011.07.18. */
	else if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD == hdev->product)
		ret = samsung_kbd_input_mapping(hdev,
			hi, field, usage, bit, max);

/* SS_BLUEZ_BT(changeon.park) End */
	return ret;
}
static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi,
	struct hid_field *field, struct hid_usage *usage,
	unsigned long **bit, int *max)
{
	int ret = 0;

	if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE == hdev->product)
		ret = samsung_kbd_mouse_input_mapping(hdev,
			hi, field, usage, bit, max);
	else if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD == hdev->product)
		ret = samsung_kbd_input_mapping(hdev,
			hi, field, usage, bit, max);
	else if(USB_DEVICE_ID_SAMSUNG_WIRELESS_GAMEPAD == hdev->product)
		ret = samsung_gamepad_input_mapping(hdev,
			hi, field, usage, bit, max);
	else if(USB_DEVICE_ID_SAMSUNG_WIRELESS_ACTIONMOUSE == hdev->product)
		ret = samsung_actionmouse_input_mapping(hdev,
			hi, field, usage, bit, max);
	else if( (USB_DEVICE_ID_SAMSUNG_WIRELESS_UNIVERSAL_KBD == hdev->product) || (USB_DEVICE_ID_SAMSUNG_WIRELESS_BOOKCOVER_TABS2 == hdev->product) )
		ret = samsung_universal_kbd_input_mapping(hdev,
			hi, field, usage, bit, max);
	return ret;
}