diff options
| author | Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> | 2013-04-03 02:02:10 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-11 10:29:05 -0400 |
| commit | d5590bba37f3c7d496195648532d5313abb43891 (patch) | |
| tree | 0f9426a58c74bbe2612d826a79694c3ac459d583 /drivers/nfc | |
| parent | c79490e1b5ebf35415147fe06f02d8e77ccfe6d4 (diff) | |
NFC: pn533: Re-group fields in struct pn533
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 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index faf377aec73c..326cefbfb14f 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
| @@ -314,6 +314,7 @@ struct pn533 { | |||
| 314 | struct usb_device *udev; | 314 | struct usb_device *udev; |
| 315 | struct usb_interface *interface; | 315 | struct usb_interface *interface; |
| 316 | struct nfc_dev *nfc_dev; | 316 | struct nfc_dev *nfc_dev; |
| 317 | u32 device_type; | ||
| 317 | 318 | ||
| 318 | struct urb *out_urb; | 319 | struct urb *out_urb; |
| 319 | struct urb *in_urb; | 320 | struct urb *in_urb; |
| @@ -326,19 +327,22 @@ struct pn533 { | |||
| 326 | struct work_struct poll_work; | 327 | struct work_struct poll_work; |
| 327 | struct work_struct mi_work; | 328 | struct work_struct mi_work; |
| 328 | struct work_struct tg_work; | 329 | struct work_struct tg_work; |
| 329 | struct timer_list listen_timer; | 330 | |
| 331 | struct list_head cmd_queue; | ||
| 332 | struct pn533_cmd *cmd; | ||
| 333 | u8 cmd_pending; | ||
| 330 | int wq_in_error; | 334 | int wq_in_error; |
| 331 | int cancel_listen; | 335 | struct mutex cmd_lock; /* protects cmd queue */ |
| 332 | 336 | ||
| 333 | void *cmd_complete_mi_arg; | 337 | void *cmd_complete_mi_arg; |
| 334 | struct mutex cmd_lock; | ||
| 335 | struct pn533_cmd *cmd; | ||
| 336 | 338 | ||
| 337 | struct pn533_poll_modulations *poll_mod_active[PN533_POLL_MOD_MAX + 1]; | 339 | struct pn533_poll_modulations *poll_mod_active[PN533_POLL_MOD_MAX + 1]; |
| 338 | u8 poll_mod_count; | 340 | u8 poll_mod_count; |
| 339 | u8 poll_mod_curr; | 341 | u8 poll_mod_curr; |
| 340 | u32 poll_protocols; | 342 | u32 poll_protocols; |
| 341 | u32 listen_protocols; | 343 | u32 listen_protocols; |
| 344 | struct timer_list listen_timer; | ||
| 345 | int cancel_listen; | ||
| 342 | 346 | ||
| 343 | u8 *gb; | 347 | u8 *gb; |
| 344 | size_t gb_len; | 348 | size_t gb_len; |
| @@ -347,11 +351,6 @@ struct pn533 { | |||
| 347 | u8 tgt_active_prot; | 351 | u8 tgt_active_prot; |
| 348 | u8 tgt_mode; | 352 | u8 tgt_mode; |
| 349 | 353 | ||
| 350 | u32 device_type; | ||
| 351 | |||
| 352 | struct list_head cmd_queue; | ||
| 353 | u8 cmd_pending; | ||
| 354 | |||
| 355 | struct pn533_frame_ops *ops; | 354 | struct pn533_frame_ops *ops; |
| 356 | }; | 355 | }; |
| 357 | 356 | ||
