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

staging: iio: meter: Fix the identations for proper alignments.

This patch fixes below checkpatch.pl kind of warnings:
CHECK: Alignment should match open parenthesis

Signed-off-by: Harinath Nampally <harinath922@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Harinath Nampally and committed by
Jonathan Cameron
4ae2f37a b2d2d2bf

+27 -28
+27 -28
drivers/staging/iio/meter/ade7753.c
··· 107 107 return ret; 108 108 } 109 109 110 - static int ade7753_spi_write_reg_16(struct device *dev, 111 - u8 reg_address, 112 - u16 value) 110 + static int ade7753_spi_write_reg_16(struct device *dev, u8 reg_address, 111 + u16 value) 113 112 { 114 113 int ret; 115 114 struct iio_dev *indio_dev = dev_to_iio_dev(dev); ··· 125 126 } 126 127 127 128 static int ade7753_spi_read_reg_8(struct device *dev, 128 - u8 reg_address, 129 - u8 *val) 129 + u8 reg_address, 130 + u8 *val) 130 131 { 131 132 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 132 133 struct ade7753_state *st = iio_priv(indio_dev); ··· 135 136 ret = spi_w8r8(st->us, ADE7753_READ_REG(reg_address)); 136 137 if (ret < 0) { 137 138 dev_err(&st->us->dev, "problem when reading 8 bit register 0x%02X", 138 - reg_address); 139 + reg_address); 139 140 return ret; 140 141 } 141 142 *val = ret; ··· 144 145 } 145 146 146 147 static int ade7753_spi_read_reg_16(struct device *dev, 147 - u8 reg_address, 148 - u16 *val) 148 + u8 reg_address, 149 + u16 *val) 149 150 { 150 151 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 151 152 struct ade7753_state *st = iio_priv(indio_dev); ··· 164 165 } 165 166 166 167 static int ade7753_spi_read_reg_24(struct device *dev, 167 - u8 reg_address, 168 - u32 *val) 168 + u8 reg_address, 169 + u32 *val) 169 170 { 170 171 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 171 172 struct ade7753_state *st = iio_priv(indio_dev); ··· 188 189 ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers)); 189 190 if (ret) { 190 191 dev_err(&st->us->dev, "problem when reading 24 bit register 0x%02X", 191 - reg_address); 192 + reg_address); 192 193 goto error_ret; 193 194 } 194 195 *val = (st->rx[0] << 16) | (st->rx[1] << 8) | st->rx[2]; ··· 199 200 } 200 201 201 202 static ssize_t ade7753_read_8bit(struct device *dev, 202 - struct device_attribute *attr, 203 - char *buf) 203 + struct device_attribute *attr, 204 + char *buf) 204 205 { 205 206 int ret; 206 207 u8 val; ··· 214 215 } 215 216 216 217 static ssize_t ade7753_read_16bit(struct device *dev, 217 - struct device_attribute *attr, 218 - char *buf) 218 + struct device_attribute *attr, 219 + char *buf) 219 220 { 220 221 int ret; 221 222 u16 val; ··· 229 230 } 230 231 231 232 static ssize_t ade7753_read_24bit(struct device *dev, 232 - struct device_attribute *attr, 233 - char *buf) 233 + struct device_attribute *attr, 234 + char *buf) 234 235 { 235 236 int ret; 236 237 u32 val; ··· 244 245 } 245 246 246 247 static ssize_t ade7753_write_8bit(struct device *dev, 247 - struct device_attribute *attr, 248 - const char *buf, 249 - size_t len) 248 + struct device_attribute *attr, 249 + const char *buf, 250 + size_t len) 250 251 { 251 252 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); 252 253 int ret; ··· 262 263 } 263 264 264 265 static ssize_t ade7753_write_16bit(struct device *dev, 265 - struct device_attribute *attr, 266 - const char *buf, 267 - size_t len) 266 + struct device_attribute *attr, 267 + const char *buf, 268 + size_t len) 268 269 { 269 270 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); 270 271 int ret; ··· 449 450 } 450 451 451 452 static ssize_t ade7753_read_frequency(struct device *dev, 452 - struct device_attribute *attr, 453 - char *buf) 453 + struct device_attribute *attr, 454 + char *buf) 454 455 { 455 456 int ret; 456 457 u16 t; ··· 467 468 } 468 469 469 470 static ssize_t ade7753_write_frequency(struct device *dev, 470 - struct device_attribute *attr, 471 - const char *buf, 472 - size_t len) 471 + struct device_attribute *attr, 472 + const char *buf, 473 + size_t len) 473 474 { 474 475 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 475 476 struct ade7753_state *st = iio_priv(indio_dev);