Commit 938c1f79 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: litelink dongle module conversion.

parent 4ffa2465
...@@ -48,12 +48,12 @@ static int litelink_reset(struct irda_task *task); ...@@ -48,12 +48,12 @@ static int litelink_reset(struct irda_task *task);
static __u32 baud_rates[] = { 115200, 57600, 38400, 19200, 9600 }; static __u32 baud_rates[] = { 115200, 57600, 38400, 19200, 9600 };
static struct dongle_reg dongle = { static struct dongle_reg dongle = {
Q_NULL, .type = IRDA_LITELINK_DONGLE,
IRDA_LITELINK_DONGLE, .open = litelink_open,
litelink_open, .close = litelink_close,
litelink_close, .reset = litelink_reset,
litelink_reset, .change_speed = litelink_change_speed,
litelink_change_speed, .owner = THIS_MODULE,
}; };
int __init litelink_init(void) int __init litelink_init(void)
...@@ -70,16 +70,12 @@ static void litelink_open(dongle_t *self, struct qos_info *qos) ...@@ -70,16 +70,12 @@ static void litelink_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 = 0x7f; /* Needs 0.01 ms */ qos->min_turn_time.bits = 0x7f; /* Needs 0.01 ms */
MOD_INC_USE_COUNT;
} }
static void litelink_close(dongle_t *self) static void litelink_close(dongle_t *self)
{ {
/* Power off dongle */ /* Power off dongle */
self->set_dtr_rts(self->dev, FALSE, FALSE); self->set_dtr_rts(self->dev, FALSE, FALSE);
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