aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_ioc.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2009-09-25 15:29:54 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:00:09 -0500
commitf8ceafde6f5bf6b4b7087c7f5e9da1b2a5284a2e (patch)
tree8c726ba2d6511a2a2be1adbd41af1cf09ecffb1d /drivers/scsi/bfa/bfa_ioc.h
parent8798a694da59486e4a3ff0abeec183202fb34c20 (diff)
[SCSI] bfa: fixed checkpatch errors for bfad files
This patch fixes checkpatch errors/warnings in bfad files. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.h')
-rw-r--r--drivers/scsi/bfa/bfa_ioc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.h b/drivers/scsi/bfa/bfa_ioc.h
index 58efd4b13143..7c30f05ab137 100644
--- a/drivers/scsi/bfa/bfa_ioc.h
+++ b/drivers/scsi/bfa/bfa_ioc.h
@@ -179,16 +179,16 @@ struct bfa_ioc_s {
179 struct bfa_ioc_mbox_mod_s mbox_mod; 179 struct bfa_ioc_mbox_mod_s mbox_mod;
180}; 180};
181 181
182#define bfa_ioc_pcifn(__ioc) (__ioc)->pcidev.pci_func 182#define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
183#define bfa_ioc_devid(__ioc) (__ioc)->pcidev.device_id 183#define bfa_ioc_devid(__ioc) ((__ioc)->pcidev.device_id)
184#define bfa_ioc_bar0(__ioc) (__ioc)->pcidev.pci_bar_kva 184#define bfa_ioc_bar0(__ioc) ((__ioc)->pcidev.pci_bar_kva)
185#define bfa_ioc_portid(__ioc) ((__ioc)->port_id) 185#define bfa_ioc_portid(__ioc) ((__ioc)->port_id)
186#define bfa_ioc_fetch_stats(__ioc, __stats) \ 186#define bfa_ioc_fetch_stats(__ioc, __stats) \
187 ((__stats)->drv_stats) = (__ioc)->stats 187 (((__stats)->drv_stats) = (__ioc)->stats)
188#define bfa_ioc_clr_stats(__ioc) \ 188#define bfa_ioc_clr_stats(__ioc) \
189 bfa_os_memset(&(__ioc)->stats, 0, sizeof((__ioc)->stats)) 189 bfa_os_memset(&(__ioc)->stats, 0, sizeof((__ioc)->stats))
190#define bfa_ioc_maxfrsize(__ioc) (__ioc)->attr->maxfrsize 190#define bfa_ioc_maxfrsize(__ioc) ((__ioc)->attr->maxfrsize)
191#define bfa_ioc_rx_bbcredit(__ioc) (__ioc)->attr->rx_bbcredit 191#define bfa_ioc_rx_bbcredit(__ioc) ((__ioc)->attr->rx_bbcredit)
192#define bfa_ioc_speed_sup(__ioc) \ 192#define bfa_ioc_speed_sup(__ioc) \
193 BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop) 193 BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop)
194 194