summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-29 21:29:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-08 14:17:36 +1000
commit609b6728effb53006b2d0be1fac55d4ab1f269d2 (patch)
treef8b5411d24ad2fbb5a661ed959702d35b4cc79fa /tools
parentc3ab0ae4f3f04da7018173662ede174c97710c8a (diff)
Purge SynapticsHWInfo stuff, move it into proto_data.
This was only used in PS/2, on linux only on kernel 2.4 and it clobbered up the rest. Move it to the ps2comm parts only, keep it private there. This includes adding a "proto_data" field to the SynapticsPrivate. This patch removes the -h option for synclient. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Christoph Brill <egore911@egore911.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/synclient.c32
1 files changed, 4 insertions, 28 deletions
diff --git a/tools/synclient.c b/tools/synclient.c
index 3ea9c50..ebba6c3 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -141,21 +141,6 @@ static struct Parameter params[] = {
{ NULL, 0, 0, 0, 0 }
};
-static void
-shm_show_hw_info(SynapticsSHM *synshm)
-{
- printf("Hardware properties:\n");
- if (synshm->synhw.model_id) {
- printf(" Model Id = %08x\n", synshm->synhw.model_id);
- printf(" Capabilities = %08x\n", synshm->synhw.capabilities);
- printf(" Identity = %08x\n", synshm->synhw.identity);
- } else {
- printf(" Can't detect hardware properties.\n");
- printf(" This is normal if you are running linux kernel 2.6.\n");
- printf(" Check the kernel log for touchpad hardware information.\n");
- }
-}
-
static double
parse_cmd(char* cmd, struct Parameter** par)
{
@@ -285,7 +270,7 @@ shm_init()
}
static void
-shm_process_commands(int dump_hw, int do_monitor, int delay)
+shm_process_commands(int do_monitor, int delay)
{
SynapticsSHM *synshm = NULL;
@@ -293,10 +278,6 @@ shm_process_commands(int dump_hw, int do_monitor, int delay)
if (!synshm)
return;
- /* Perform requested actions */
- if (dump_hw)
- shm_show_hw_info(synshm);
-
if (do_monitor)
shm_monitor(synshm, delay);
}
@@ -576,7 +557,6 @@ usage(void)
fprintf(stderr, "Usage: synclient [-s] [-m interval] [-h] [-l] [-V] [-?] [var1=value1 [var2=value2] ...]\n");
fprintf(stderr, " -m monitor changes to the touchpad state (implies -s)\n"
" interval specifies how often (in ms) to poll the touchpad state\n");
- fprintf(stderr, " -h Show detected hardware properties (implies -s)\n");
fprintf(stderr, " -l List current user settings\n");
fprintf(stderr, " -V Print synclient version string and exit\n");
fprintf(stderr, " -? Show this help message\n");
@@ -590,7 +570,6 @@ main(int argc, char *argv[])
int c;
int delay = -1;
int do_monitor = 0;
- int dump_hw = 0;
int dump_settings = 0;
int first_cmd;
@@ -605,9 +584,6 @@ main(int argc, char *argv[])
if ((delay = atoi(optarg)) < 0)
usage();
break;
- case 'h':
- dump_hw = 1;
- break;
case 'l':
dump_settings = 1;
break;
@@ -620,12 +596,12 @@ main(int argc, char *argv[])
}
first_cmd = optind;
- if (!do_monitor && !dump_hw && !dump_settings && first_cmd == argc)
+ if (!do_monitor && !dump_settings && first_cmd == argc)
usage();
/* Connect to the shared memory area */
- if (do_monitor || dump_hw)
- shm_process_commands(dump_hw, do_monitor, delay);
+ if (do_monitor)
+ shm_process_commands(do_monitor, delay);
dpy = dp_init();
if (!dpy || !(dev = dp_get_device(dpy)))