diff options
author | Tilman Schmidt <tilman@imap.cc> | 2010-07-05 10:18:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-07 19:57:51 -0400 |
commit | e3628dd176ba3ed329991ef042c29aae60617630 (patch) | |
tree | 77e47e95ba38276557702a5bfc8e319bc9100b7c /drivers/isdn/gigaset/gigaset.h | |
parent | b3251d8045f87eec5d565603345d262cee134fa6 (diff) |
isdn/gigaset: avoid copying AT commands twice
Change the Gigaset driver's internal write_cmd interface to accept a
cmdbuf structure instead of a string. This avoids copying formatted
AT commands a second time.
Impact: optimization
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset/gigaset.h')
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index 8738b0821fc9..904c9473effc 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -574,9 +574,7 @@ struct bas_bc_state { | |||
574 | struct gigaset_ops { | 574 | struct gigaset_ops { |
575 | /* Called from ev-layer.c/interface.c for sending AT commands to the | 575 | /* Called from ev-layer.c/interface.c for sending AT commands to the |
576 | device */ | 576 | device */ |
577 | int (*write_cmd)(struct cardstate *cs, | 577 | int (*write_cmd)(struct cardstate *cs, struct cmdbuf_t *cb); |
578 | const unsigned char *buf, int len, | ||
579 | struct tasklet_struct *wake_tasklet); | ||
580 | 578 | ||
581 | /* Called from interface.c for additional device control */ | 579 | /* Called from interface.c for additional device control */ |
582 | int (*write_room)(struct cardstate *cs); | 580 | int (*write_room)(struct cardstate *cs); |