@@ -865,7 +865,7 @@ static int xpadneo_input_configured(struct hid_device *hdev, struct hid_input *h
865
865
/* combine triggers to form a rudder, use ABS_MISC to order after dpad */
866
866
input_set_abs_params (xdata -> gamepad , ABS_MISC , -1023 , 1023 , 3 , 63 );
867
867
868
- /* do not report the consumer control buttons as part of the gamepad */
868
+ /* do not report the keyboard buttons as part of the gamepad */
869
869
__clear_bit (BTN_SHARE , xdata -> gamepad -> keybit );
870
870
871
871
/* add paddles as part of the gamepad */
@@ -882,7 +882,7 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
882
882
{
883
883
struct xpadneo_devdata * xdata = hid_get_drvdata (hdev );
884
884
struct input_dev * gamepad = xdata -> gamepad ;
885
- struct input_dev * consumer = xdata -> consumer ;
885
+ struct input_dev * keyboard = xdata -> keyboard ;
886
886
887
887
if ((usage -> type == EV_KEY ) && (usage -> code == BTN_PADDLES (0 ))) {
888
888
if (gamepad && xdata -> profile == 0 ) {
@@ -938,11 +938,11 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
938
938
}
939
939
goto stop_processing ;
940
940
} else if ((usage -> type == EV_KEY ) && (usage -> code == BTN_SHARE )) {
941
- /* move the Share button to the consumer control device */
942
- if (!consumer )
943
- goto consumer_missing ;
944
- input_report_key (consumer , BTN_SHARE , value );
945
- input_sync (consumer );
941
+ /* move the Share button to the keyboard device */
942
+ if (!keyboard )
943
+ goto keyboard_missing ;
944
+ input_report_key (keyboard , BTN_SHARE , value );
945
+ input_sync (keyboard );
946
946
goto stop_processing ;
947
947
} else if (xdata -> xbox_button_down && (usage -> type == EV_KEY )) {
948
948
if (!(xdata -> quirks & XPADNEO_QUIRK_USE_HW_PROFILES )) {
@@ -981,10 +981,10 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
981
981
}
982
982
return 0 ;
983
983
984
- consumer_missing :
985
- if ((xdata -> missing_reported && XPADNEO_MISSING_CONSUMER ) == 0 ) {
986
- xdata -> missing_reported |= XPADNEO_MISSING_CONSUMER ;
987
- hid_err (hdev , "consumer control not detected\n" );
984
+ keyboard_missing :
985
+ if ((xdata -> missing_reported && XPADNEO_MISSING_KEYBOARD ) == 0 ) {
986
+ xdata -> missing_reported |= XPADNEO_MISSING_KEYBOARD ;
987
+ hid_err (hdev , "keyboard not detected\n" );
988
988
}
989
989
990
990
stop_processing :
0 commit comments