lirc
Pepe
pepe w apollo.net.pl
Pią, 17 Paź 2003, 21:07:33 CEST
On Fri, 17 Oct 2003 20:16:36 +0200
Pepe <pepe w apollo.net.pl> wrote:
> W załączniku patch
Jak zwykle nie przeszedł (why ?)
lirc-drivers_i2c.patch:
-- cut --
-diff -urN lirc-0.6.6/drivers/lirc_i2c/lirc_i2c.c.orig lirc-0.6.6/drivers/lirc_i2c/lirc_i2c.c
--- lirc-0.6.6/drivers/lirc_i2c/lirc_i2c.c.orig Sat Sep 27 18:08:49 2003
+++ lirc-0.6.6/drivers/lirc_i2c/lirc_i2c.c Sat Sep 27 18:15:03 2003
@@ -231,30 +231,8 @@
return 0;
}
-static void set_use_inc(void* data)
-{
- struct IR *ir = data;
-
- /* lock bttv in memory while /dev/lirc is in use */
- if (ir->c.adapter->inc_use)
- ir->c.adapter->inc_use(ir->c.adapter);
-
- MOD_INC_USE_COUNT;
-}
-
-static void set_use_dec(void* data)
-{
- struct IR *ir = data;
-
- if (ir->c.adapter->dec_use)
- ir->c.adapter->dec_use(ir->c.adapter);
- MOD_DEC_USE_COUNT;
-}
-
static struct lirc_plugin lirc_template = {
name: "lirc_i2c",
- set_use_inc: set_use_inc,
- set_use_dec: set_use_dec
};
/* ----------------------------------------------------------------------- */
@@ -335,8 +313,6 @@
/* register device */
i2c_attach_client(&ir->c);
ir->l.minor = lirc_register_plugin(&ir->l);
- if (ir->c.adapter->inc_use)
- ir->c.adapter->inc_use(ir->c.adapter);
return 0;
}
@@ -346,8 +322,6 @@
struct IR *ir = client->data;
/* unregister device */
- if (ir->c.adapter->dec_use)
- ir->c.adapter->dec_use(ir->c.adapter);
lirc_unregister_plugin(ir->l.minor);
i2c_detach_client(&ir->c);
- cut --
--
Pepe
Więcej informacji o liście dyskusyjnej pld-devel-pl