summaryrefslogtreecommitdiff
path: root/src/psmcomm.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-07-23 15:03:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-09-01 13:21:51 +1000
commit81ad2e389d11691d5c2687d83150e8e9033cfe76 (patch)
tree2463252e1a12d79c110d39eef3d2ca23d32f4ed8 /src/psmcomm.c
parentb7dbe57332bd3d009ea60038f555ae1ef7e17e85 (diff)
Use InputInfoPtr instead of LocalDevicePtr.
The latter is about to be removed from the server, InputInfoPtr has been around in all supported server versions. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/psmcomm.c')
-rw-r--r--src/psmcomm.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/psmcomm.c b/src/psmcomm.c
index 50ddd8f..66e8d1e 100644
--- a/src/psmcomm.c
+++ b/src/psmcomm.c
@@ -79,7 +79,7 @@ psm_synaptics_identify(int fd, synapticshw_t *ident)
#define PSM_LEVEL_NATIVE 2
static Bool
-PSMQueryIsSynaptics(LocalDevicePtr local)
+PSMQueryIsSynaptics(InputInfoPtr pInfo)
{
int ret;
int level = PSM_LEVEL_NATIVE;
@@ -89,14 +89,14 @@ PSMQueryIsSynaptics(LocalDevicePtr local)
* Otherwise HWINFO will not return the right id
* And we will need native mode anyway ...
*/
- SYSCALL(ret = ioctl(local->fd, MOUSE_SETLEVEL, &level));
+ SYSCALL(ret = ioctl(pInfo->fd, MOUSE_SETLEVEL, &level));
if (ret != 0) {
- xf86Msg(X_ERROR, "%s Can't set native mode\n", local->name);
+ xf86Msg(X_ERROR, "%s Can't set native mode\n", pInfo->name);
return FALSE;
}
- SYSCALL(ret = ioctl(local->fd, MOUSE_GETHWINFO, &mhw));
+ SYSCALL(ret = ioctl(pInfo->fd, MOUSE_GETHWINFO, &mhw));
if (ret != 0) {
- xf86Msg(X_ERROR, "%s Can't get hardware info\n", local->name);
+ xf86Msg(X_ERROR, "%s Can't get hardware info\n", pInfo->name);
return FALSE;
}
@@ -104,7 +104,7 @@ PSMQueryIsSynaptics(LocalDevicePtr local)
return TRUE;
} else {
xf86Msg(X_ERROR, "%s Found no Synaptics, found Mouse model %d instead\n",
- local->name, mhw.model);
+ pInfo->name, mhw.model);
return FALSE;
}
}
@@ -134,13 +134,13 @@ convert_hw_info(const synapticshw_t *psm_ident, struct SynapticsHwInfo *synhw)
}
static Bool
-PSMQueryHardware(LocalDevicePtr local)
+PSMQueryHardware(InputInfoPtr pInfo)
{
synapticshw_t psm_ident;
struct SynapticsHwInfo *synhw;
SynapticsPrivate *priv;
- priv = (SynapticsPrivate *)local->private;
+ priv = (SynapticsPrivate *)pInfo->private;
if(!priv->proto_data)
priv->proto_data = calloc(1, sizeof(struct SynapticsHwInfo));
@@ -150,9 +150,9 @@ PSMQueryHardware(LocalDevicePtr local)
if (!PSMQueryIsSynaptics(local))
return FALSE;
- xf86Msg(X_PROBED, "%s synaptics touchpad found\n", local->name);
+ xf86Msg(X_PROBED, "%s synaptics touchpad found\n", pInfo->name);
- if (!psm_synaptics_identify(local->fd, &psm_ident))
+ if (!psm_synaptics_identify(pInfo->fd, &psm_ident))
return FALSE;
convert_hw_info(&psm_ident, synhw);
@@ -163,14 +163,14 @@ PSMQueryHardware(LocalDevicePtr local)
}
static Bool
-PSMReadHwState(LocalDevicePtr local,
+PSMReadHwState(InputInfoPtr pInfo,
struct SynapticsProtocolOperations *proto_ops,
struct CommData *comm, struct SynapticsHwState *hwRet)
{
return psaux_proto_operations.ReadHwState(local, proto_ops, comm, hwRet);
}
-static Bool PSMAutoDevProbe(LocalDevicePtr local)
+static Bool PSMAutoDevProbe(InputInfoPtr pInfo)
{
return FALSE;
}