soundwire: more alignment fixes
authorVinod Koul <vkoul@kernel.org>
Thu, 2 May 2019 10:59:24 +0000 (16:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 15:17:51 +0000 (17:17 +0200)
Found few more issues reported checkpatch on code alignment so fix those
as well in the soundwire core.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/bus.c
drivers/soundwire/stream.c
include/linux/soundwire/sdw.h

index e2ee305905a6fc4cb67a61a775ebaa42cc19ad13..16b2a3b2662ddf98dd26edb225c01181e9879efb 100644 (file)
@@ -43,7 +43,8 @@ int sdw_add_bus_master(struct sdw_bus *bus)
        if (bus->ops->read_prop) {
                ret = bus->ops->read_prop(bus);
                if (ret < 0) {
-                       dev_err(bus->dev, "Bus read properties failed:%d\n", ret);
+                       dev_err(bus->dev,
+                               "Bus read properties failed:%d\n", ret);
                        return ret;
                }
        }
index 032a326a96d755cbec81e2e1e7f1905e44925600..bffa535294eddb57ff28e73bed40d43a62679a8b 100644 (file)
@@ -400,7 +400,8 @@ static int sdw_do_port_prep(struct sdw_slave_runtime *s_rt,
                ret = ops->port_prep(s_rt->slave, &prep_ch, cmd);
                if (ret < 0) {
                        dev_err(&s_rt->slave->dev,
-                               "Slave Port Prep cmd %d failed: %d\n", cmd, ret);
+                               "Slave Port Prep cmd %d failed: %d\n",
+                               cmd, ret);
                        return ret;
                }
        }
@@ -614,7 +615,8 @@ static int sdw_program_params(struct sdw_bus *bus)
 
                ret = sdw_notify_config(m_rt);
                if (ret < 0) {
-                       dev_err(bus->dev, "Notify bus config failed: %d\n", ret);
+                       dev_err(bus->dev,
+                               "Notify bus config failed: %d\n", ret);
                        return ret;
                }
 
@@ -789,7 +791,8 @@ static int do_bank_switch(struct sdw_stream_runtime *stream)
                        ret = ops->post_bank_switch(bus);
                        if (ret < 0) {
                                dev_err(bus->dev,
-                                       "Post bank switch op failed: %d\n", ret);
+                                       "Post bank switch op failed: %d\n",
+                                       ret);
                                goto error;
                        }
                } else if (bus->multi_link && stream->m_rt_count > 1) {
@@ -1562,7 +1565,8 @@ static int _sdw_enable_stream(struct sdw_stream_runtime *stream)
                /* Enable port(s) */
                ret = sdw_enable_disable_ports(m_rt, true);
                if (ret < 0) {
-                       dev_err(bus->dev, "Enable port(s) failed ret: %d\n", ret);
+                       dev_err(bus->dev,
+                               "Enable port(s) failed ret: %d\n", ret);
                        return ret;
                }
        }
@@ -1672,7 +1676,8 @@ static int _sdw_deprepare_stream(struct sdw_stream_runtime *stream)
                /* De-prepare port(s) */
                ret = sdw_prep_deprep_ports(m_rt, false);
                if (ret < 0) {
-                       dev_err(bus->dev, "De-prepare port(s) failed: %d\n", ret);
+                       dev_err(bus->dev,
+                               "De-prepare port(s) failed: %d\n", ret);
                        return ret;
                }
 
index d9102af5e26ca6efd4771849b022eb8d85df6c23..41c49631288ae0186cd9958d010504e603d183ee 100644 (file)
@@ -470,14 +470,14 @@ struct sdw_bus_params {
 struct sdw_slave_ops {
        int (*read_prop)(struct sdw_slave *sdw);
        int (*interrupt_callback)(struct sdw_slave *slave,
-                       struct sdw_slave_intr_status *status);
+                                 struct sdw_slave_intr_status *status);
        int (*update_status)(struct sdw_slave *slave,
-                       enum sdw_slave_status status);
+                            enum sdw_slave_status status);
        int (*bus_config)(struct sdw_slave *slave,
-                       struct sdw_bus_params *params);
+                         struct sdw_bus_params *params);
        int (*port_prep)(struct sdw_slave *slave,
-                       struct sdw_prepare_ch *prepare_ch,
-                       enum sdw_port_prep_ops pre_ops);
+                        struct sdw_prepare_ch *prepare_ch,
+                        enum sdw_port_prep_ops pre_ops);
 };
 
 /**