summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-08-23 18:50:40 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:09 +0200
commit156c4330531c037eb7bb45a38b84bacb5010e290 (patch)
tree040c2f3838532607d56718c6572418fbb48a31e7
parent5ab0290008b2c6d69d3b7ed0b0375652cf4ae40c (diff)
Comment fixes.
-rw-r--r--synaptics.c4
-rw-r--r--synaptics.h12
2 files changed, 6 insertions, 10 deletions
diff --git a/synaptics.c b/synaptics.c
index 7f302c1..b4ed557 100644
--- a/synaptics.c
+++ b/synaptics.c
@@ -164,7 +164,7 @@ GetlineBuffSys(char **line, size_t *len,int fd)
/* In the buffer[] are still brest characters, starting at old_i.*/
if(old_i)
memmove(buffer, buffer + old_i, brest);
- buffer[0] = first_char; /* 1. char was stored separetely, to make place for
+ buffer[0] = first_char; /* 1. char was stored separately, to make place for
the terminating '\0' */
/* We fill up the buffer to its limit, each time */
SYSCALL(read_len = read(fd, buffer + brest, BLEN - brest));
@@ -503,7 +503,7 @@ SynapticsCtrl(DeviceIntPtr device, PtrCtrl *ctrl)
static Bool
DeviceControl (DeviceIntPtr dev, int mode)
{
- Bool RetValue;
+ Bool RetValue;
switch (mode)
{
diff --git a/synaptics.h b/synaptics.h
index 5bbdb48..72c215b 100644
--- a/synaptics.h
+++ b/synaptics.h
@@ -11,7 +11,7 @@
typedef struct _SynapticsSHM
{
/* Current device state */
- int x, y; /* actual x, y Coordinates */
+ int x, y; /* actual x, y coordinates */
int z; /* pressure value */
int w; /* finger width value */
int left, right, up, down; /* left/right/up/down buttons */
@@ -24,8 +24,7 @@ typedef struct _SynapticsSHM
Bool isSynaptics; /* Synaptics touchpad active */
/* Parameter data */
- int left_edge, right_edge, top_edge, bottom_edge;
- /* edge coordinates absolute */
+ int left_edge, right_edge, top_edge, bottom_edge; /* edge coordinates absolute */
int finger_low, finger_high; /* finger detection values in Z-values */
unsigned long tap_time;
int tap_move; /* max. tapping-time and movement in packets and coord. */
@@ -110,7 +109,7 @@ typedef struct _SynapticsPrivateRec
/* Data for normal processing */
XISBuffer *buffer;
unsigned char protoBuf[6]; /* Buffer for Packet */
- unsigned char lastByte; /* letztes gelesene byte */
+ unsigned char lastByte; /* Last read byte. Use for reset sequence detection. */
int outOfSync; /* How many consecutive incorrect packets we
have received */
int protoBufTail;
@@ -164,10 +163,7 @@ static Bool SynapticsParseRawPacket(LocalDevicePtr, SynapticsPrivatePtr,
static Bool SynapticsGetPacket(LocalDevicePtr, SynapticsPrivatePtr);
static void PrintIdent(SynapticsPrivatePtr);
-#endif
+#endif /* SYNAPTICS_PRIVATE */
-/*
- * DO NOT PUT ANYTHING AFTER THIS ENDIF
- */
#endif /* _SYNAPTICS_H_ */