Commit 39fc8c2d authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Tekram dongle module conversion.

parent 8495a1ab
...@@ -44,12 +44,12 @@ static int tekram_reset(struct irda_task *task); ...@@ -44,12 +44,12 @@ static int tekram_reset(struct irda_task *task);
#define TEKRAM_PW 0x10 /* Pulse select bit */ #define TEKRAM_PW 0x10 /* Pulse select bit */
static struct dongle_reg dongle = { static struct dongle_reg dongle = {
Q_NULL, .type = IRDA_TEKRAM_DONGLE,
IRDA_TEKRAM_DONGLE, .open = tekram_open,
tekram_open, .close = tekram_close,
tekram_close, .reset = tekram_reset,
tekram_reset, .change_speed = tekram_change_speed,
tekram_change_speed, .owner = THIS_MODULE,
}; };
int __init tekram_init(void) int __init tekram_init(void)
...@@ -69,8 +69,6 @@ static void tekram_open(dongle_t *self, struct qos_info *qos) ...@@ -69,8 +69,6 @@ static void tekram_open(dongle_t *self, struct qos_info *qos)
qos->baud_rate.bits &= IR_9600|IR_19200|IR_38400|IR_57600|IR_115200; qos->baud_rate.bits &= IR_9600|IR_19200|IR_38400|IR_57600|IR_115200;
qos->min_turn_time.bits = 0x01; /* Needs at least 10 ms */ qos->min_turn_time.bits = 0x01; /* Needs at least 10 ms */
irda_qos_bits_to_value(qos); irda_qos_bits_to_value(qos);
MOD_INC_USE_COUNT;
} }
static void tekram_close(dongle_t *self) static void tekram_close(dongle_t *self)
...@@ -84,8 +82,6 @@ static void tekram_close(dongle_t *self) ...@@ -84,8 +82,6 @@ static void tekram_close(dongle_t *self)
irda_task_delete(self->reset_task); irda_task_delete(self->reset_task);
if (self->speed_task) if (self->speed_task)
irda_task_delete(self->speed_task); irda_task_delete(self->speed_task);
MOD_DEC_USE_COUNT;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment