Thread (71 messages) flat view 71 messages, 7 authors, 2011-07-09

Re: [PATCH 07/12] Input: synaptics - rename synaptics_data.mt to agm

From: Daniel Kurtz <hidden>
Date: 2011-07-05 04:40:25
Also in: lkml

On Tue, Jul 5, 2011 at 5:26 AM, Henrik Rydberg [off-list ref] wrote:
On Wed, Jun 29, 2011 at 01:07:17PM +0800, djkurtz@chromium.org wrote:
quoted
From: Daniel Kurtz <redacted>

Rename the synaptics_data.mt field to priv->agm to indicate it is the
hardware state reported in a synaptics AGM packet.

When a Synaptics touchpad is in "AGM" mode, and multiple fingers are
detected, the touchpad sends alternating "Advanced Gesture Mode" (AGM) and
"Simple Gesture Mode" (SGM) packets.
  The AGM packets have w=2, and contain reduced resolution finger data.
  The SGM packets have w={0,1} and contain full resolution finger data.

Signed-off-by: Daniel Kurtz <redacted>
---
How about just modifying the comment, i.e., leaving this hunk?
IMHO, changing the field name from mt to agm makes the following
patches more clear, by making it easier to see the difference between
sgm and agm packets.
quoted
@@ -147,7 +147,7 @@ struct synaptics_data {
      struct serio *pt_port;                  /* Pass-through serio port */

-     struct synaptics_hw_state mt;           /* current gesture packet */
+     struct synaptics_hw_state agm;          /* last AGM packet */
 };

 void synaptics_module_init(void);
--
Thanks,
Henrik
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help