diff options
author | Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> | 2012-12-10 08:42:50 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-09 18:51:39 -0500 |
commit | 37cf4fc6c98f230ca026763ae03cb88ff786eeb9 (patch) | |
tree | 9ce127d875a325ff84bf97e064202589711ed093 /drivers/nfc | |
parent | 6ca55372bf55885e02d17c58cd29ceef045ee699 (diff) |
NFC: pn533: Fix spacing issues
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn533.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index 43970610c710..19fecdba611b 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -1124,7 +1124,7 @@ static int pn533_target_found_type_a(struct nfc_target *nfc_tgt, u8 *tgt_data, | |||
1124 | { | 1124 | { |
1125 | struct pn533_target_type_a *tgt_type_a; | 1125 | struct pn533_target_type_a *tgt_type_a; |
1126 | 1126 | ||
1127 | tgt_type_a = (struct pn533_target_type_a *) tgt_data; | 1127 | tgt_type_a = (struct pn533_target_type_a *)tgt_data; |
1128 | 1128 | ||
1129 | if (!pn533_target_type_a_is_valid(tgt_type_a, tgt_data_len)) | 1129 | if (!pn533_target_type_a_is_valid(tgt_type_a, tgt_data_len)) |
1130 | return -EPROTO; | 1130 | return -EPROTO; |
@@ -1182,7 +1182,7 @@ static int pn533_target_found_felica(struct nfc_target *nfc_tgt, u8 *tgt_data, | |||
1182 | { | 1182 | { |
1183 | struct pn533_target_felica *tgt_felica; | 1183 | struct pn533_target_felica *tgt_felica; |
1184 | 1184 | ||
1185 | tgt_felica = (struct pn533_target_felica *) tgt_data; | 1185 | tgt_felica = (struct pn533_target_felica *)tgt_data; |
1186 | 1186 | ||
1187 | if (!pn533_target_felica_is_valid(tgt_felica, tgt_data_len)) | 1187 | if (!pn533_target_felica_is_valid(tgt_felica, tgt_data_len)) |
1188 | return -EPROTO; | 1188 | return -EPROTO; |
@@ -1232,7 +1232,7 @@ static int pn533_target_found_jewel(struct nfc_target *nfc_tgt, u8 *tgt_data, | |||
1232 | { | 1232 | { |
1233 | struct pn533_target_jewel *tgt_jewel; | 1233 | struct pn533_target_jewel *tgt_jewel; |
1234 | 1234 | ||
1235 | tgt_jewel = (struct pn533_target_jewel *) tgt_data; | 1235 | tgt_jewel = (struct pn533_target_jewel *)tgt_data; |
1236 | 1236 | ||
1237 | if (!pn533_target_jewel_is_valid(tgt_jewel, tgt_data_len)) | 1237 | if (!pn533_target_jewel_is_valid(tgt_jewel, tgt_data_len)) |
1238 | return -EPROTO; | 1238 | return -EPROTO; |
@@ -1291,7 +1291,7 @@ static int pn533_target_found_type_b(struct nfc_target *nfc_tgt, u8 *tgt_data, | |||
1291 | { | 1291 | { |
1292 | struct pn533_target_type_b *tgt_type_b; | 1292 | struct pn533_target_type_b *tgt_type_b; |
1293 | 1293 | ||
1294 | tgt_type_b = (struct pn533_target_type_b *) tgt_data; | 1294 | tgt_type_b = (struct pn533_target_type_b *)tgt_data; |
1295 | 1295 | ||
1296 | if (!pn533_target_type_b_is_valid(tgt_type_b, tgt_data_len)) | 1296 | if (!pn533_target_type_b_is_valid(tgt_type_b, tgt_data_len)) |
1297 | return -EPROTO; | 1297 | return -EPROTO; |
@@ -1368,7 +1368,7 @@ static void pn533_poll_reset_mod_list(struct pn533 *dev) | |||
1368 | static void pn533_poll_add_mod(struct pn533 *dev, u8 mod_index) | 1368 | static void pn533_poll_add_mod(struct pn533 *dev, u8 mod_index) |
1369 | { | 1369 | { |
1370 | dev->poll_mod_active[dev->poll_mod_count] = | 1370 | dev->poll_mod_active[dev->poll_mod_count] = |
1371 | (struct pn533_poll_modulations *) &poll_mod[mod_index]; | 1371 | (struct pn533_poll_modulations *)&poll_mod[mod_index]; |
1372 | dev->poll_mod_count++; | 1372 | dev->poll_mod_count++; |
1373 | } | 1373 | } |
1374 | 1374 | ||
@@ -1565,7 +1565,7 @@ static int pn533_init_target_complete(struct pn533 *dev, struct sk_buff *resp) | |||
1565 | 1565 | ||
1566 | static void pn533_listen_mode_timer(unsigned long data) | 1566 | static void pn533_listen_mode_timer(unsigned long data) |
1567 | { | 1567 | { |
1568 | struct pn533 *dev = (struct pn533 *) data; | 1568 | struct pn533 *dev = (struct pn533 *)data; |
1569 | 1569 | ||
1570 | nfc_dev_dbg(&dev->interface->dev, "Listen mode timeout"); | 1570 | nfc_dev_dbg(&dev->interface->dev, "Listen mode timeout"); |
1571 | 1571 | ||
@@ -1789,7 +1789,7 @@ static int pn533_activate_target_nfcdep(struct pn533 *dev) | |||
1789 | if (IS_ERR(resp)) | 1789 | if (IS_ERR(resp)) |
1790 | return PTR_ERR(resp); | 1790 | return PTR_ERR(resp); |
1791 | 1791 | ||
1792 | rsp = (struct pn533_cmd_activate_response *) resp->data; | 1792 | rsp = (struct pn533_cmd_activate_response *)resp->data; |
1793 | rc = rsp->status & PN533_CMD_RET_MASK; | 1793 | rc = rsp->status & PN533_CMD_RET_MASK; |
1794 | if (rc != PN533_CMD_RET_SUCCESS) | 1794 | if (rc != PN533_CMD_RET_SUCCESS) |
1795 | dev_kfree_skb(resp); | 1795 | dev_kfree_skb(resp); |
@@ -1969,7 +1969,7 @@ static int pn533_mod_to_baud(struct pn533 *dev) | |||
1969 | 1969 | ||
1970 | #define PASSIVE_DATA_LEN 5 | 1970 | #define PASSIVE_DATA_LEN 5 |
1971 | static int pn533_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, | 1971 | static int pn533_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, |
1972 | u8 comm_mode, u8* gb, size_t gb_len) | 1972 | u8 comm_mode, u8 *gb, size_t gb_len) |
1973 | { | 1973 | { |
1974 | struct pn533 *dev = nfc_get_drvdata(nfc_dev); | 1974 | struct pn533 *dev = nfc_get_drvdata(nfc_dev); |
1975 | struct sk_buff *skb; | 1975 | struct sk_buff *skb; |