aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/psmouse-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/psmouse-base.c')
-rw-r--r--drivers/input/mouse/psmouse-base.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c
index 33a3251e0766..e6c9e7bb1f99 100644
--- a/drivers/input/mouse/psmouse-base.c
+++ b/drivers/input/mouse/psmouse-base.c
@@ -570,7 +570,9 @@ static int psmouse_extensions(struct psmouse *psmouse,
570 return PSMOUSE_THINKPS; 570 return PSMOUSE_THINKPS;
571 571
572/* 572/*
573 * Try Synaptics TouchPad 573 * Try Synaptics TouchPad. Note that probing is done even if Synaptics protocol
574 * support is disabled in config - we need to know if it is synaptics so we
575 * can reset it properly after probing for intellimouse.
574 */ 576 */
575 if (max_proto > PSMOUSE_PS2 && synaptics_detect(psmouse, set_properties) == 0) { 577 if (max_proto > PSMOUSE_PS2 && synaptics_detect(psmouse, set_properties) == 0) {
576 synaptics_hardware = 1; 578 synaptics_hardware = 1;
@@ -661,12 +663,14 @@ static const struct psmouse_protocol psmouse_protocols[] = {
661 .maxproto = 1, 663 .maxproto = 1,
662 .detect = ps2bare_detect, 664 .detect = ps2bare_detect,
663 }, 665 },
666#ifdef CONFIG_MOUSE_PS2_LOGIPS2PP
664 { 667 {
665 .type = PSMOUSE_PS2PP, 668 .type = PSMOUSE_PS2PP,
666 .name = "PS2++", 669 .name = "PS2++",
667 .alias = "logitech", 670 .alias = "logitech",
668 .detect = ps2pp_init, 671 .detect = ps2pp_init,
669 }, 672 },
673#endif
670 { 674 {
671 .type = PSMOUSE_THINKPS, 675 .type = PSMOUSE_THINKPS,
672 .name = "ThinkPS/2", 676 .name = "ThinkPS/2",
@@ -693,6 +697,7 @@ static const struct psmouse_protocol psmouse_protocols[] = {
693 .maxproto = 1, 697 .maxproto = 1,
694 .detect = im_explorer_detect, 698 .detect = im_explorer_detect,
695 }, 699 },
700#ifdef CONFIG_MOUSE_PS2_SYNAPTICS
696 { 701 {
697 .type = PSMOUSE_SYNAPTICS, 702 .type = PSMOUSE_SYNAPTICS,
698 .name = "SynPS/2", 703 .name = "SynPS/2",
@@ -700,6 +705,8 @@ static const struct psmouse_protocol psmouse_protocols[] = {
700 .detect = synaptics_detect, 705 .detect = synaptics_detect,
701 .init = synaptics_init, 706 .init = synaptics_init,
702 }, 707 },
708#endif
709#ifdef CONFIG_MOUSE_PS2_ALPS
703 { 710 {
704 .type = PSMOUSE_ALPS, 711 .type = PSMOUSE_ALPS,
705 .name = "AlpsPS/2", 712 .name = "AlpsPS/2",
@@ -707,24 +714,31 @@ static const struct psmouse_protocol psmouse_protocols[] = {
707 .detect = alps_detect, 714 .detect = alps_detect,
708 .init = alps_init, 715 .init = alps_init,
709 }, 716 },
717#endif
718#ifdef CONFIG_MOUSE_PS2_LIFEBOOK
710 { 719 {
711 .type = PSMOUSE_LIFEBOOK, 720 .type = PSMOUSE_LIFEBOOK,
712 .name = "LBPS/2", 721 .name = "LBPS/2",
713 .alias = "lifebook", 722 .alias = "lifebook",
714 .init = lifebook_init, 723 .init = lifebook_init,
715 }, 724 },
725#endif
726#ifdef CONFIG_MOUSE_PS2_TRACKPOINT
716 { 727 {
717 .type = PSMOUSE_TRACKPOINT, 728 .type = PSMOUSE_TRACKPOINT,
718 .name = "TPPS/2", 729 .name = "TPPS/2",
719 .alias = "trackpoint", 730 .alias = "trackpoint",
720 .detect = trackpoint_detect, 731 .detect = trackpoint_detect,
721 }, 732 },
733#endif
734#ifdef CONFIG_MOUSE_PS2_TOUCHKIT
722 { 735 {
723 .type = PSMOUSE_TOUCHKIT_PS2, 736 .type = PSMOUSE_TOUCHKIT_PS2,
724 .name = "touchkitPS/2", 737 .name = "touchkitPS/2",
725 .alias = "touchkit", 738 .alias = "touchkit",
726 .detect = touchkit_ps2_detect, 739 .detect = touchkit_ps2_detect,
727 }, 740 },
741#endif
728 { 742 {
729 .type = PSMOUSE_AUTO, 743 .type = PSMOUSE_AUTO,
730 .name = "auto", 744 .name = "auto",