staging: pi433: align function parameters with open parenthesis
PATCH 1/1 staging: pi433: align function parameters with open parenthesis
Fixes checkpatch warnings:
CHECK: Alignment should match open parenthesis
--- drivers/staging/pi433/pi433_if.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/pi433/pi433_if.c +5 -5
@@ -799,7 +799,7 @@ pi433_read(struct file *filp, char __user *buf, size_t size, loff_t *f_pos)static ssize_t pi433_write (struct file *filp,const char __user *buf, -size_t count,loff_t *f_pos) +size_t count,loff_t *f_pos) {struct pi433_instance *instance;struct pi433_device *device;
@@ -870,17 +870,17 @@ pi433_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)switch (cmd) {case PI433_IOC_RD_TX_CFG :if (copy_to_user (argp, &instance->tx_cfg, -sizeof (struct pi433_tx_cfg ))) +sizeof (struct pi433_tx_cfg )))return -EFAULT ;break ;case PI433_IOC_WR_TX_CFG :if (copy_from_user (&instance->tx_cfg, argp, -sizeof (struct pi433_tx_cfg ))) +sizeof (struct pi433_tx_cfg )))return -EFAULT ;break ;case PI433_IOC_RD_RX_CFG :if (copy_to_user (argp, &device->rx_cfg, -sizeof (struct pi433_rx_cfg ))) +sizeof (struct pi433_rx_cfg )))return -EFAULT ;break ;case PI433_IOC_WR_RX_CFG :
@@ -893,7 +893,7 @@ pi433_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) }if (copy_from_user (&device->rx_cfg, argp, -sizeof (struct pi433_rx_cfg ))) { +sizeof (struct pi433_rx_cfg ))) {mutex_unlock (&device->rx_lock);return -EFAULT ; }
Signature · 1 line
2.15.1
Greg Kroah-Hartman
maintainerQuoted 6 lines · Valentin Vidic
Fixes checkpatch warnings:
CHECK: Alignment should match open parenthesis
--- drivers/staging/pi433/pi433_if.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
No signed-off-by line :(
PATCH v2 1/1 staging: pi433: align function parameters with open parenthesis
Fixes checkpatch warnings:
CHECK: Alignment should match open parenthesis
Signed-off-by Valentin Vidic <[email protected]>
---
v2: add missing Signed-off-by
drivers/staging/pi433/pi433_if.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/pi433/pi433_if.c +5 -5
@@ -799,7 +799,7 @@ pi433_read(struct file *filp, char __user *buf, size_t size, loff_t *f_pos)static ssize_t pi433_write (struct file *filp,const char __user *buf, -size_t count,loff_t *f_pos) +size_t count,loff_t *f_pos) {struct pi433_instance *instance;struct pi433_device *device;
@@ -870,17 +870,17 @@ pi433_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)switch (cmd) {case PI433_IOC_RD_TX_CFG :if (copy_to_user (argp, &instance->tx_cfg, -sizeof (struct pi433_tx_cfg ))) +sizeof (struct pi433_tx_cfg )))return -EFAULT ;break ;case PI433_IOC_WR_TX_CFG :if (copy_from_user (&instance->tx_cfg, argp, -sizeof (struct pi433_tx_cfg ))) +sizeof (struct pi433_tx_cfg )))return -EFAULT ;break ;case PI433_IOC_RD_RX_CFG :if (copy_to_user (argp, &device->rx_cfg, -sizeof (struct pi433_rx_cfg ))) +sizeof (struct pi433_rx_cfg )))return -EFAULT ;break ;case PI433_IOC_WR_RX_CFG :
@@ -893,7 +893,7 @@ pi433_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) }if (copy_from_user (&device->rx_cfg, argp, -sizeof (struct pi433_rx_cfg ))) { +sizeof (struct pi433_rx_cfg ))) {mutex_unlock (&device->rx_lock);return -EFAULT ; }
Signature · 1 line
2.15.1