staging: iio: resolver: align to match open parenthesis
authorEva Rachel Retuya <eraretuya@gmail.com>
Thu, 18 Feb 2016 10:59:33 +0000 (18:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:46:35 +0000 (14:46 -0800)
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>
drivers/staging/iio/resolver/ad2s1200.c
drivers/staging/iio/resolver/ad2s1210.c

index 595e711d35a6c33ee4123597b1fd02e278c449e1..77fa7911efb04a928851bb4b31b109c199fba5bf 100644 (file)
@@ -42,10 +42,10 @@ struct ad2s1200_state {
 };
 
 static int ad2s1200_read_raw(struct iio_dev *indio_dev,
-                          struct iio_chan_spec const *chan,
-                          int *val,
-                          int *val2,
-                          long m)
+                            struct iio_chan_spec const *chan,
+                            int *val,
+                            int *val2,
+                            long m)
 {
        int ret = 0;
        s16 vel;
@@ -113,7 +113,7 @@ static int ad2s1200_probe(struct spi_device *spi)
                                            DRV_NAME);
                if (ret) {
                        dev_err(&spi->dev, "request gpio pin %d failed\n",
-                                                       pins[pn]);
+                               pins[pn]);
                        return ret;
                }
        }
index d97aa2827412a606de57a66e858db205a96f13a0..f11832c52aa0ca7b52b4567120cea2edb5f60a87 100644 (file)
@@ -123,7 +123,7 @@ static int ad2s1210_config_write(struct ad2s1210_state *st, u8 data)
 
 /* read value from one of the registers */
 static int ad2s1210_config_read(struct ad2s1210_state *st,
-                      unsigned char address)
+                               unsigned char address)
 {
        struct spi_transfer xfer = {
                .len = 2,
@@ -282,8 +282,8 @@ static ssize_t ad2s1210_show_control(struct device *dev,
 }
 
 static ssize_t ad2s1210_store_control(struct device *dev,
-                       struct device_attribute *attr,
-                       const char *buf, size_t len)
+                                     struct device_attribute *attr,
+                                     const char *buf, size_t len)
 {
        struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
        unsigned char udata;
@@ -330,7 +330,8 @@ error_ret:
 }
 
 static ssize_t ad2s1210_show_resolution(struct device *dev,
-                       struct device_attribute *attr, char *buf)
+                                       struct device_attribute *attr,
+                                       char *buf)
 {
        struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
 
@@ -338,8 +339,8 @@ static ssize_t ad2s1210_show_resolution(struct device *dev,
 }
 
 static ssize_t ad2s1210_store_resolution(struct device *dev,
-                       struct device_attribute *attr,
-                       const char *buf, size_t len)
+                                        struct device_attribute *attr,
+                                        const char *buf, size_t len)
 {
        struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
        unsigned char data;
@@ -389,7 +390,7 @@ error_ret:
 
 /* read the fault register since last sample */
 static ssize_t ad2s1210_show_fault(struct device *dev,
-                       struct device_attribute *attr, char *buf)
+                                  struct device_attribute *attr, char *buf)
 {
        struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
        int ret;
@@ -441,7 +442,8 @@ static ssize_t ad2s1210_show_reg(struct device *dev,
 }
 
 static ssize_t ad2s1210_store_reg(struct device *dev,
-               struct device_attribute *attr, const char *buf, size_t len)
+                                 struct device_attribute *attr,
+                                 const char *buf, size_t len)
 {
        struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
        unsigned char data;