]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: dac: ad5446: Fix coding style issues
authorNuno Sá <nuno.sa@analog.com>
Tue, 4 Nov 2025 15:35:16 +0000 (15:35 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 16:31:22 +0000 (16:31 +0000)
Fix style issues as reported by checkpatch.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5446.c

index 0556ce78c2f67e7d211e6212f598286719776d8e..46a2eadb1d9b0cff1dbdeae8682747c3dc031d11 100644 (file)
@@ -28,7 +28,8 @@ static const char * const ad5446_powerdown_modes[] = {
 };
 
 static int ad5446_set_powerdown_mode(struct iio_dev *indio_dev,
-       const struct iio_chan_spec *chan, unsigned int mode)
+                                    const struct iio_chan_spec *chan,
+                                    unsigned int mode)
 {
        struct ad5446_state *st = iio_priv(indio_dev);
 
@@ -38,7 +39,7 @@ static int ad5446_set_powerdown_mode(struct iio_dev *indio_dev,
 }
 
 static int ad5446_get_powerdown_mode(struct iio_dev *indio_dev,
-       const struct iio_chan_spec *chan)
+                                    const struct iio_chan_spec *chan)
 {
        struct ad5446_state *st = iio_priv(indio_dev);
 
@@ -53,9 +54,9 @@ static const struct iio_enum ad5446_powerdown_mode_enum = {
 };
 
 static ssize_t ad5446_read_dac_powerdown(struct iio_dev *indio_dev,
-                                          uintptr_t private,
-                                          const struct iio_chan_spec *chan,
-                                          char *buf)
+                                        uintptr_t private,
+                                        const struct iio_chan_spec *chan,
+                                        char *buf)
 {
        struct ad5446_state *st = iio_priv(indio_dev);
 
@@ -63,9 +64,9 @@ static ssize_t ad5446_read_dac_powerdown(struct iio_dev *indio_dev,
 }
 
 static ssize_t ad5446_write_dac_powerdown(struct iio_dev *indio_dev,
-                                           uintptr_t private,
-                                           const struct iio_chan_spec *chan,
-                                           const char *buf, size_t len)
+                                         uintptr_t private,
+                                         const struct iio_chan_spec *chan,
+                                         const char *buf, size_t len)
 {
        struct ad5446_state *st = iio_priv(indio_dev);
        unsigned int shift;
@@ -147,10 +148,8 @@ static int ad5446_write_dac_raw(struct iio_dev *indio_dev,
 }
 
 static int ad5446_write_raw(struct iio_dev *indio_dev,
-                              struct iio_chan_spec const *chan,
-                              int val,
-                              int val2,
-                              long mask)
+                           struct iio_chan_spec const *chan, int val,
+                           int val2, long mask)
 {
        switch (mask) {
        case IIO_CHAN_INFO_RAW: