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); 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; }