Commit 6aa4bbe5 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: mcp2120 dongle module conversion.

parent f3d60717
...@@ -40,12 +40,12 @@ static int mcp2120_change_speed(struct irda_task *task); ...@@ -40,12 +40,12 @@ static int mcp2120_change_speed(struct irda_task *task);
#define MCP2120_COMMIT 0x11 #define MCP2120_COMMIT 0x11
static struct dongle_reg dongle = { static struct dongle_reg dongle = {
Q_NULL, .type = IRDA_MCP2120_DONGLE,
IRDA_MCP2120_DONGLE, .open = mcp2120_open,
mcp2120_open, .close = mcp2120_close,
mcp2120_close, .reset = mcp2120_reset,
mcp2120_reset, .change_speed = mcp2120_change_speed,
mcp2120_change_speed, .owner = THIS_MODULE,
}; };
int __init mcp2120_init(void) int __init mcp2120_init(void)
...@@ -62,8 +62,6 @@ static void mcp2120_open(dongle_t *self, struct qos_info *qos) ...@@ -62,8 +62,6 @@ static void mcp2120_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; qos->min_turn_time.bits = 0x01;
MOD_INC_USE_COUNT;
} }
static void mcp2120_close(dongle_t *self) static void mcp2120_close(dongle_t *self)
...@@ -72,8 +70,6 @@ static void mcp2120_close(dongle_t *self) ...@@ -72,8 +70,6 @@ static void mcp2120_close(dongle_t *self)
/* reset and inhibit mcp2120 */ /* reset and inhibit mcp2120 */
self->set_dtr_rts(self->dev, TRUE, TRUE); self->set_dtr_rts(self->dev, TRUE, TRUE);
//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