Revision: 738
http://svn.sourceforge.net/hackndev/?rev=738&view=rev
Author: z72ka
Date: 2007-01-08 02:10:11 -0800 (Mon, 08 Jan 2007)
Log Message:
-----------
Added support for 4-row Palm IR keyboard
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/net/irda/sir_dev.c
Modified: linux4palm/linux/trunk/drivers/net/irda/sir_dev.c
===================================================================
--- linux4palm/linux/trunk/drivers/net/irda/sir_dev.c 2007-01-08 10:01:18 UTC (rev 737)
+++ linux4palm/linux/trunk/drivers/net/irda/sir_dev.c 2007-01-08 10:10:11 UTC (rev 738)
@@ -322,7 +322,14 @@
int palmirkbd_receive(void *dev, const unsigned char *cp, size_t count);
#endif
+#ifdef CONFIG_KEYBOARD_PALMWK
+/* NOTE: this is a hack so that we can use the palm keyboard and IRDA at the same
+ * time. It should not be included in any official-ish kernel tree.
+ */
+int palmwk_receive(void *dev, const unsigned char *cp, size_t count);
+#endif
+
/***************************************************************************/
void sirdev_enable_rx(struct sir_dev *dev)
@@ -546,6 +553,13 @@
*/
if(palmirkbd_receive(dev, cp, count)) return 0;
#endif
+
+ #ifdef CONFIG_KEYBOARD_PALMWK
+ /* NOTE: this is a hack so that we can use the palm keyboard and IRDA at the same
+ * time. It should not be included in any official-ish kernel tree.
+ */
+ if(palmwk_receive(dev, cp, count)) return 0;
+ #endif
if (!dev || !dev->netdev) {
IRDA_WARNING("%s(), not ready yet!\n", __FUNCTION__);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|