Skip to contentSkip to conversation

rts5139: fix pointer coding style

PATCH In review Németh Márton 2 participants 2 messages Jan 22, 2012 – Jan 29, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rts5139: fix pointer coding style

From: Márton Németh <[email protected]>

This will remove the following checkpatch.pl error:
ERROR: "foo * bar" should be "foo *bar"

---
 drivers/staging/rts5139/ms.h               |    4 ++--
 drivers/staging/rts5139/rts51x_chip.c      |   14 +++++++-------
 drivers/staging/rts5139/rts51x_chip.h      |    6 +++---
 drivers/staging/rts5139/rts51x_fop.h       |    2 +-
 drivers/staging/rts5139/rts51x_transport.c |    2 +-
 drivers/staging/rts5139/rts51x_transport.h |    2 +-
 drivers/staging/rts5139/sd_cprm.c          |    2 +-
 7 files changed, 16 insertions(+), 16 deletions(-)
drivers/staging/rts5139/ms.h +2 -2
index f9d46d2..3ce1dc9 100644
@@ -249,9 +249,9 @@ int ms_delay_write(struct rts51x_chip *chip);
 #ifdef SUPPORT_MAGIC_GATE
 
 int ms_switch_clock(struct rts51x_chip *chip);
-int ms_write_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 * data,
+int ms_write_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data,
 		   int data_len);
-int ms_read_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 * data,
+int ms_read_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data,
 		  int data_len);
 int ms_set_rw_reg_addr(struct rts51x_chip *chip, u8 read_start, u8 read_cnt,
 		       u8 write_start, u8 write_cnt);
drivers/staging/rts5139/rts51x_chip.c +7 -7
index adc0d00..b3e0bb2 100644
@@ -541,7 +541,7 @@ int rts51x_get_rsp(struct rts51x_chip *chip, int rsp_len, int timeout)
 	return STATUS_SUCCESS;
 }
 
-int rts51x_get_card_status(struct rts51x_chip *chip, u16 * status)
+int rts51x_get_card_status(struct rts51x_chip *chip, u16 *status)
 {
 	int retval;
 	u16 val;
@@ -577,7 +577,7 @@ int rts51x_write_register(struct rts51x_chip *chip, u16 addr, u8 mask, u8 data)
 	return STATUS_SUCCESS;
 }
 
-int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 * data)
+int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 *data)
 {
 	int retval;
 
@@ -620,7 +620,7 @@ int rts51x_ep0_write_register(struct rts51x_chip *chip, u16 addr, u8 mask,
 	return STATUS_SUCCESS;
 }
 
-int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 * data)
+int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 *data)
 {
 	int retval;
 	u16 value = 0;
@@ -720,7 +720,7 @@ int rts51x_seq_read_register(struct rts51x_chip *chip, u16 addr, u16 len,
 	return STATUS_SUCCESS;
 }
 
-int rts51x_read_ppbuf(struct rts51x_chip *chip, u8 * buf, int buf_len)
+int rts51x_read_ppbuf(struct rts51x_chip *chip, u8 *buf, int buf_len)
 {
 	int retval;
 
@@ -735,7 +735,7 @@ int rts51x_read_ppbuf(struct rts51x_chip *chip, u8 * buf, int buf_len)
 	return STATUS_SUCCESS;
 }
 
-int rts51x_write_ppbuf(struct rts51x_chip *chip, u8 * buf, int buf_len)
+int rts51x_write_ppbuf(struct rts51x_chip *chip, u8 *buf, int buf_len)
 {
 	int retval;
 
@@ -776,7 +776,7 @@ int rts51x_write_phy_register(struct rts51x_chip *chip, u8 addr, u8 val)
 	return STATUS_SUCCESS;
 }
 
-int rts51x_read_phy_register(struct rts51x_chip *chip, u8 addr, u8 * val)
+int rts51x_read_phy_register(struct rts51x_chip *chip, u8 addr, u8 *val)
 {
 	int retval;
 
@@ -921,7 +921,7 @@ void rts51x_trace_msg(struct rts51x_chip *chip, unsigned char *buf, int clear)
 }
 #endif
 
-void rts51x_pp_status(struct rts51x_chip *chip, unsigned int lun, u8 * status,
+void rts51x_pp_status(struct rts51x_chip *chip, unsigned int lun, u8 *status,
 		      u8 status_len)
 {
 	struct sd_info *sd_card = &(chip->sd_card);
drivers/staging/rts5139/rts51x_chip.h +3 -3
index 321ece7..13fc2a4 100644
@@ -857,12 +857,12 @@ static inline u8 *rts51x_get_rsp_data(struct rts51x_chip *chip)
 	return chip->rsp_buf;
 }
 
-int rts51x_get_card_status(struct rts51x_chip *chip, u16 * status);
+int rts51x_get_card_status(struct rts51x_chip *chip, u16 *status);
 int rts51x_write_register(struct rts51x_chip *chip, u16 addr, u8 mask, u8 data);
-int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 * data);
+int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 *data);
 int rts51x_ep0_write_register(struct rts51x_chip *chip, u16 addr, u8 mask,
 			      u8 data);
-int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 * data);
+int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 *data);
 int rts51x_seq_write_register(struct rts51x_chip *chip, u16 addr, u16 len,
 			      u8 *data);
 int rts51x_seq_read_register(struct rts51x_chip *chip, u16 addr, u16 len,
drivers/staging/rts5139/rts51x_fop.h +1 -1
index 0453f57..94d75f0 100644
@@ -48,7 +48,7 @@ int rts51x_open(struct inode *inode, struct file *filp);
 int rts51x_release(struct inode *inode, struct file *filp);
 ssize_t rts51x_read(struct file *filp, char __user *buf, size_t count,
 		    loff_t *f_pos);
-ssize_t rts51x_write(struct file *filp, const char __user * buf, size_t count,
+ssize_t rts51x_write(struct file *filp, const char __user *buf, size_t count,
 		     loff_t *f_pos);
 #if 0 /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) */
 int rts51x_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
drivers/staging/rts5139/rts51x_transport.c +1 -1
index e11467a..da9c83b 100644
@@ -883,7 +883,7 @@ int rts51x_transfer_data_partial(struct rts51x_chip *chip, unsigned int pipe,
 	return result;
 }
 
-int rts51x_get_epc_status(struct rts51x_chip *chip, u16 * status)
+int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status)
 {
 	unsigned int pipe = RCV_INTR_PIPE(chip);
 	struct usb_host_endpoint *ep;
drivers/staging/rts5139/rts51x_transport.h +1 -1
index 8464c48..9dd556e 100644
@@ -73,7 +73,7 @@ int rts51x_start_epc_transfer(struct rts51x_chip *chip);
 void rts51x_cancel_epc_transfer(struct rts51x_chip *chip);
 #endif
 
-int rts51x_get_epc_status(struct rts51x_chip *chip, u16 * status);
+int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status);
 void rts51x_invoke_transport(struct scsi_cmnd *srb, struct rts51x_chip *chip);
 
 #endif /* __RTS51X_TRANSPORT_H */
drivers/staging/rts5139/sd_cprm.c +1 -1
index 407cd43..d5969d9 100644
@@ -233,7 +233,7 @@ RTY_SEND_CMD:
 	return STATUS_SUCCESS;
 }
 
-int ext_sd_get_rsp(struct rts51x_chip *chip, int len, u8 * rsp, u8 rsp_type)
+int ext_sd_get_rsp(struct rts51x_chip *chip, int len, u8 *rsp, u8 rsp_type)
 {
 	int retval, rsp_len;
 	u16 reg_addr;
Signature · 1 line
1.7.2.5
#1 lore raw

Dear Marton,

Thanks for the fix.

BRs
Edwin

Quoted 171 lines · Németh Márton

From: Márton Németh<[email protected]>

This will remove the following checkpatch.pl error:
ERROR: "foo * bar" should be "foo *bar"

---
  drivers/staging/rts5139/ms.h               |    4 ++--
  drivers/staging/rts5139/rts51x_chip.c      |   14 +++++++-------
  drivers/staging/rts5139/rts51x_chip.h      |    6 +++---
  drivers/staging/rts5139/rts51x_fop.h       |    2 +-
  drivers/staging/rts5139/rts51x_transport.c |    2 +-
  drivers/staging/rts5139/rts51x_transport.h |    2 +-
  drivers/staging/rts5139/sd_cprm.c          |    2 +-
  7 files changed, 16 insertions(+), 16 deletions(-)
drivers/staging/rts5139/ms.h +2 -2
index f9d46d2..3ce1dc9 100644
@@ -249,9 +249,9 @@ int ms_delay_write(struct rts51x_chip *chip);
  #ifdef SUPPORT_MAGIC_GATE
 
  int ms_switch_clock(struct rts51x_chip *chip);
-int ms_write_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 * data,
+int ms_write_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data,
  		   int data_len);
-int ms_read_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 * data,
+int ms_read_bytes(struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data,
  		  int data_len);
  int ms_set_rw_reg_addr(struct rts51x_chip *chip, u8 read_start, u8 read_cnt,
  		       u8 write_start, u8 write_cnt);
drivers/staging/rts5139/rts51x_chip.c +7 -7
index adc0d00..b3e0bb2 100644
@@ -541,7 +541,7 @@ int rts51x_get_rsp(struct rts51x_chip *chip, int rsp_len, int timeout)
  	return STATUS_SUCCESS;
  }
 
-int rts51x_get_card_status(struct rts51x_chip *chip, u16 * status)
+int rts51x_get_card_status(struct rts51x_chip *chip, u16 *status)
  {
  	int retval;
  	u16 val;
@@ -577,7 +577,7 @@ int rts51x_write_register(struct rts51x_chip *chip, u16 addr, u8 mask, u8 data)
  	return STATUS_SUCCESS;
  }
 
-int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 * data)
+int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 *data)
  {
  	int retval;
 
@@ -620,7 +620,7 @@ int rts51x_ep0_write_register(struct rts51x_chip *chip, u16 addr, u8 mask,
  	return STATUS_SUCCESS;
  }
 
-int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 * data)
+int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 *data)
  {
  	int retval;
  	u16 value = 0;
@@ -720,7 +720,7 @@ int rts51x_seq_read_register(struct rts51x_chip *chip, u16 addr, u16 len,
  	return STATUS_SUCCESS;
  }
 
-int rts51x_read_ppbuf(struct rts51x_chip *chip, u8 * buf, int buf_len)
+int rts51x_read_ppbuf(struct rts51x_chip *chip, u8 *buf, int buf_len)
  {
  	int retval;
 
@@ -735,7 +735,7 @@ int rts51x_read_ppbuf(struct rts51x_chip *chip, u8 * buf, int buf_len)
  	return STATUS_SUCCESS;
  }
 
-int rts51x_write_ppbuf(struct rts51x_chip *chip, u8 * buf, int buf_len)
+int rts51x_write_ppbuf(struct rts51x_chip *chip, u8 *buf, int buf_len)
  {
  	int retval;
 
@@ -776,7 +776,7 @@ int rts51x_write_phy_register(struct rts51x_chip *chip, u8 addr, u8 val)
  	return STATUS_SUCCESS;
  }
 
-int rts51x_read_phy_register(struct rts51x_chip *chip, u8 addr, u8 * val)
+int rts51x_read_phy_register(struct rts51x_chip *chip, u8 addr, u8 *val)
  {
  	int retval;
 
@@ -921,7 +921,7 @@ void rts51x_trace_msg(struct rts51x_chip *chip, unsigned char *buf, int clear)
  }
  #endif
 
-void rts51x_pp_status(struct rts51x_chip *chip, unsigned int lun, u8 * status,
+void rts51x_pp_status(struct rts51x_chip *chip, unsigned int lun, u8 *status,
  		      u8 status_len)
  {
  	struct sd_info *sd_card =&(chip->sd_card);
drivers/staging/rts5139/rts51x_chip.h +3 -3
index 321ece7..13fc2a4 100644
@@ -857,12 +857,12 @@ static inline u8 *rts51x_get_rsp_data(struct rts51x_chip *chip)
  	return chip->rsp_buf;
  }
 
-int rts51x_get_card_status(struct rts51x_chip *chip, u16 * status);
+int rts51x_get_card_status(struct rts51x_chip *chip, u16 *status);
  int rts51x_write_register(struct rts51x_chip *chip, u16 addr, u8 mask, u8 data);
-int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 * data);
+int rts51x_read_register(struct rts51x_chip *chip, u16 addr, u8 *data);
  int rts51x_ep0_write_register(struct rts51x_chip *chip, u16 addr, u8 mask,
  			      u8 data);
-int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 * data);
+int rts51x_ep0_read_register(struct rts51x_chip *chip, u16 addr, u8 *data);
  int rts51x_seq_write_register(struct rts51x_chip *chip, u16 addr, u16 len,
  			      u8 *data);
  int rts51x_seq_read_register(struct rts51x_chip *chip, u16 addr, u16 len,
drivers/staging/rts5139/rts51x_fop.h +1 -1
index 0453f57..94d75f0 100644
@@ -48,7 +48,7 @@ int rts51x_open(struct inode *inode, struct file *filp);
  int rts51x_release(struct inode *inode, struct file *filp);
  ssize_t rts51x_read(struct file *filp, char __user *buf, size_t count,
  		    loff_t *f_pos);
-ssize_t rts51x_write(struct file *filp, const char __user * buf, size_t count,
+ssize_t rts51x_write(struct file *filp, const char __user *buf, size_t count,
  		     loff_t *f_pos);
  #if 0 /* LINUX_VERSION_CODE<  KERNEL_VERSION(2, 6, 36) */
  int rts51x_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
drivers/staging/rts5139/rts51x_transport.c +1 -1
index e11467a..da9c83b 100644
@@ -883,7 +883,7 @@ int rts51x_transfer_data_partial(struct rts51x_chip *chip, unsigned int pipe,
  	return result;
  }
 
-int rts51x_get_epc_status(struct rts51x_chip *chip, u16 * status)
+int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status)
  {
  	unsigned int pipe = RCV_INTR_PIPE(chip);
  	struct usb_host_endpoint *ep;
drivers/staging/rts5139/rts51x_transport.h +1 -1
index 8464c48..9dd556e 100644
@@ -73,7 +73,7 @@ int rts51x_start_epc_transfer(struct rts51x_chip *chip);
  void rts51x_cancel_epc_transfer(struct rts51x_chip *chip);
  #endif
 
-int rts51x_get_epc_status(struct rts51x_chip *chip, u16 * status);
+int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status);
  void rts51x_invoke_transport(struct scsi_cmnd *srb, struct rts51x_chip *chip);
 
  #endif /* __RTS51X_TRANSPORT_H */
drivers/staging/rts5139/sd_cprm.c +1 -1
index 407cd43..d5969d9 100644
@@ -233,7 +233,7 @@ RTY_SEND_CMD:
  	return STATUS_SUCCESS;
  }
 
-int ext_sd_get_rsp(struct rts51x_chip *chip, int len, u8 * rsp, u8 rsp_type)
+int ext_sd_get_rsp(struct rts51x_chip *chip, int len, u8 *rsp, u8 rsp_type)
  {
  	int retval, rsp_len;
  	u16 reg_addr;