Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: iio: resolver: align to match open parenthesis

Use a combination of tabs and spaces to align parameters to its
corresponding open parenthesis. Checkpatch found this issue.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Eva Rachel Retuya and committed by
Greg Kroah-Hartman
ae6394aa ddab4a02

+15 -13
+5 -5
drivers/staging/iio/resolver/ad2s1200.c
··· 42 42 }; 43 43 44 44 static int ad2s1200_read_raw(struct iio_dev *indio_dev, 45 - struct iio_chan_spec const *chan, 46 - int *val, 47 - int *val2, 48 - long m) 45 + struct iio_chan_spec const *chan, 46 + int *val, 47 + int *val2, 48 + long m) 49 49 { 50 50 int ret = 0; 51 51 s16 vel; ··· 113 113 DRV_NAME); 114 114 if (ret) { 115 115 dev_err(&spi->dev, "request gpio pin %d failed\n", 116 - pins[pn]); 116 + pins[pn]); 117 117 return ret; 118 118 } 119 119 }
+10 -8
drivers/staging/iio/resolver/ad2s1210.c
··· 123 123 124 124 /* read value from one of the registers */ 125 125 static int ad2s1210_config_read(struct ad2s1210_state *st, 126 - unsigned char address) 126 + unsigned char address) 127 127 { 128 128 struct spi_transfer xfer = { 129 129 .len = 2, ··· 282 282 } 283 283 284 284 static ssize_t ad2s1210_store_control(struct device *dev, 285 - struct device_attribute *attr, 286 - const char *buf, size_t len) 285 + struct device_attribute *attr, 286 + const char *buf, size_t len) 287 287 { 288 288 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); 289 289 unsigned char udata; ··· 330 330 } 331 331 332 332 static ssize_t ad2s1210_show_resolution(struct device *dev, 333 - struct device_attribute *attr, char *buf) 333 + struct device_attribute *attr, 334 + char *buf) 334 335 { 335 336 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); 336 337 ··· 339 338 } 340 339 341 340 static ssize_t ad2s1210_store_resolution(struct device *dev, 342 - struct device_attribute *attr, 343 - const char *buf, size_t len) 341 + struct device_attribute *attr, 342 + const char *buf, size_t len) 344 343 { 345 344 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); 346 345 unsigned char data; ··· 390 389 391 390 /* read the fault register since last sample */ 392 391 static ssize_t ad2s1210_show_fault(struct device *dev, 393 - struct device_attribute *attr, char *buf) 392 + struct device_attribute *attr, char *buf) 394 393 { 395 394 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); 396 395 int ret; ··· 442 441 } 443 442 444 443 static ssize_t ad2s1210_store_reg(struct device *dev, 445 - struct device_attribute *attr, const char *buf, size_t len) 444 + struct device_attribute *attr, 445 + const char *buf, size_t len) 446 446 { 447 447 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); 448 448 unsigned char data;