scsi: Clean up errors in nsp32_io.h
Subsystems (2)
PATCH 1/1 scsi: Clean up errors in nsp32_io.h
Fix the following errors reported by checkpatch:
ERROR: space prohibited before that close parenthesis ')'
ERROR: space required after that ',' (ctx:VxV)
Signed-off-by GuoHua Cheng <[email protected]>
--- drivers/scsi/nsp32_io.h | 18 +++++++++--------- drivers/scsi/scsi_pm.c | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-)
drivers/scsi/nsp32_io.h +9 -9
@@ -126,7 +126,7 @@ static inline void nsp32_index_write1(unsigned int base,unsigned int reg, unsigned char val) { - outb(reg, base + INDEX_REG ); + outb(reg, base + INDEX_REG);outb (val, base +DATA_REG_LOW ); }
@@ -141,18 +141,18 @@ static inline void nsp32_index_write2(unsigned int base,unsigned int reg, unsigned short val) { - outb(reg, base + INDEX_REG ); + outb(reg, base + INDEX_REG);outw (val, base +DATA_REG_LOW ); }static inline unsigned long nsp32_index_read4 (unsigned int base,unsigned int reg) { -unsigned long h,l; +unsigned long h, l;outb (reg, base +INDEX_REG ); l =inw (base +DATA_REG_LOW ); - h =inw (base +DATA_REG_HI ); + h =inw (base +DATA_REG_HI );return ((h <<16 ) | l); }
@@ -161,14 +161,14 @@ static inline void nsp32_index_write4(unsigned int base, unsigned int reg, unsigned long val) { -unsigned long h,l; +unsigned long h, l; h = (val &0xffff0000 ) >>16 ; l = (val &0x0000ffff ) >>0 ; -outb (reg, base +INDEX_REG ); +outb (reg, base +INDEX_REG );outw (l, base +DATA_REG_LOW ); -outw (h, base +DATA_REG_HI ); +outw (h, base +DATA_REG_HI ); }/*==============================================*/
@@ -195,7 +195,7 @@ static inline void nsp32_mmio_index_write1(unsigned long base, data_ptr = (unsigned short *)(base +NSP32_MMIO_OFFSET +DATA_REG_LOW );writeb (reg, index_ptr); -writeb (val, data_ptr ); +writeb (val, data_ptr); } static inline unsigned short nsp32_mmio_index_read2(unsigned long base,
@@ -220,7 +220,7 @@ static inline void nsp32_mmio_index_write2(unsigned long base, data_ptr = (unsigned short *)(base +NSP32_MMIO_OFFSET +DATA_REG_LOW );writeb (reg, index_ptr); -writew (cpu_to_le16 (val), data_ptr ); +writew (cpu_to_le16 (val), data_ptr); }/*==============================================*/
drivers/scsi/scsi_pm.c +2 -2
@@ -218,7 +218,7 @@ int scsi_autopm_get_device(struct scsi_device *sdev)int err; err =pm_runtime_get_sync (&sdev->sdev_gendev); -if (err <0 && err !=-EACCES ) +if (err <0 && err != -EACCES )pm_runtime_put_sync (&sdev->sdev_gendev);else err =0 ;
@@ -247,7 +247,7 @@ int scsi_autopm_get_host(struct Scsi_Host *shost)int err; err =pm_runtime_get_sync (&shost->shost_gendev); -if (err <0 && err !=-EACCES ) +if (err <0 && err != -EACCES )pm_runtime_put_sync (&shost->shost_gendev);else err =0 ;
Signature · 1 line
2.17.1