aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btuart_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/btuart_cs.c')
-rw-r--r--drivers/bluetooth/btuart_cs.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c
index fb948f02eda5..abb4d2106db4 100644
--- a/drivers/bluetooth/btuart_cs.c
+++ b/drivers/bluetooth/btuart_cs.c
@@ -62,7 +62,7 @@ MODULE_LICENSE("GPL");
62/* ======================== Local structures ======================== */ 62/* ======================== Local structures ======================== */
63 63
64 64
65typedef struct btuart_info_t { 65struct btuart_info {
66 struct pcmcia_device *p_dev; 66 struct pcmcia_device *p_dev;
67 67
68 struct hci_dev *hdev; 68 struct hci_dev *hdev;
@@ -75,7 +75,7 @@ typedef struct btuart_info_t {
75 unsigned long rx_state; 75 unsigned long rx_state;
76 unsigned long rx_count; 76 unsigned long rx_count;
77 struct sk_buff *rx_skb; 77 struct sk_buff *rx_skb;
78} btuart_info_t; 78};
79 79
80 80
81static int btuart_config(struct pcmcia_device *link); 81static int btuart_config(struct pcmcia_device *link);
@@ -127,7 +127,7 @@ static int btuart_write(unsigned int iobase, int fifo_size, __u8 *buf, int len)
127} 127}
128 128
129 129
130static void btuart_write_wakeup(btuart_info_t *info) 130static void btuart_write_wakeup(struct btuart_info *info)
131{ 131{
132 if (!info) { 132 if (!info) {
133 BT_ERR("Unknown device"); 133 BT_ERR("Unknown device");
@@ -172,7 +172,7 @@ static void btuart_write_wakeup(btuart_info_t *info)
172} 172}
173 173
174 174
175static void btuart_receive(btuart_info_t *info) 175static void btuart_receive(struct btuart_info *info)
176{ 176{
177 unsigned int iobase; 177 unsigned int iobase;
178 int boguscount = 0; 178 int boguscount = 0;
@@ -286,7 +286,7 @@ static void btuart_receive(btuart_info_t *info)
286 286
287static irqreturn_t btuart_interrupt(int irq, void *dev_inst) 287static irqreturn_t btuart_interrupt(int irq, void *dev_inst)
288{ 288{
289 btuart_info_t *info = dev_inst; 289 struct btuart_info *info = dev_inst;
290 unsigned int iobase; 290 unsigned int iobase;
291 int boguscount = 0; 291 int boguscount = 0;
292 int iir, lsr; 292 int iir, lsr;
@@ -340,7 +340,8 @@ static irqreturn_t btuart_interrupt(int irq, void *dev_inst)
340} 340}
341 341
342 342
343static void btuart_change_speed(btuart_info_t *info, unsigned int speed) 343static void btuart_change_speed(struct btuart_info *info,
344 unsigned int speed)
344{ 345{
345 unsigned long flags; 346 unsigned long flags;
346 unsigned int iobase; 347 unsigned int iobase;
@@ -397,7 +398,7 @@ static void btuart_change_speed(btuart_info_t *info, unsigned int speed)
397 398
398static int btuart_hci_flush(struct hci_dev *hdev) 399static int btuart_hci_flush(struct hci_dev *hdev)
399{ 400{
400 btuart_info_t *info = hci_get_drvdata(hdev); 401 struct btuart_info *info = hci_get_drvdata(hdev);
401 402
402 /* Drop TX queue */ 403 /* Drop TX queue */
403 skb_queue_purge(&(info->txq)); 404 skb_queue_purge(&(info->txq));
@@ -427,7 +428,7 @@ static int btuart_hci_close(struct hci_dev *hdev)
427 428
428static int btuart_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) 429static int btuart_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
429{ 430{
430 btuart_info_t *info = hci_get_drvdata(hdev); 431 struct btuart_info *info = hci_get_drvdata(hdev);
431 432
432 switch (bt_cb(skb)->pkt_type) { 433 switch (bt_cb(skb)->pkt_type) {
433 case HCI_COMMAND_PKT: 434 case HCI_COMMAND_PKT:
@@ -455,7 +456,7 @@ static int btuart_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
455/* ======================== Card services HCI interaction ======================== */ 456/* ======================== Card services HCI interaction ======================== */
456 457
457 458
458static int btuart_open(btuart_info_t *info) 459static int btuart_open(struct btuart_info *info)
459{ 460{
460 unsigned long flags; 461 unsigned long flags;
461 unsigned int iobase = info->p_dev->resource[0]->start; 462 unsigned int iobase = info->p_dev->resource[0]->start;
@@ -521,7 +522,7 @@ static int btuart_open(btuart_info_t *info)
521} 522}
522 523
523 524
524static int btuart_close(btuart_info_t *info) 525static int btuart_close(struct btuart_info *info)
525{ 526{
526 unsigned long flags; 527 unsigned long flags;
527 unsigned int iobase = info->p_dev->resource[0]->start; 528 unsigned int iobase = info->p_dev->resource[0]->start;
@@ -550,7 +551,7 @@ static int btuart_close(btuart_info_t *info)
550 551
551static int btuart_probe(struct pcmcia_device *link) 552static int btuart_probe(struct pcmcia_device *link)
552{ 553{
553 btuart_info_t *info; 554 struct btuart_info *info;
554 555
555 /* Create new info device */ 556 /* Create new info device */
556 info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL); 557 info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL);
@@ -613,7 +614,7 @@ static int btuart_check_config_notpicky(struct pcmcia_device *p_dev,
613 614
614static int btuart_config(struct pcmcia_device *link) 615static int btuart_config(struct pcmcia_device *link)
615{ 616{
616 btuart_info_t *info = link->priv; 617 struct btuart_info *info = link->priv;
617 int i; 618 int i;
618 int try; 619 int try;
619 620
@@ -654,7 +655,7 @@ failed:
654 655
655static void btuart_release(struct pcmcia_device *link) 656static void btuart_release(struct pcmcia_device *link)
656{ 657{
657 btuart_info_t *info = link->priv; 658 struct btuart_info *info = link->priv;
658 659
659 btuart_close(info); 660 btuart_close(info);
660 661