staging: most: make alignment match open parenthesis
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 21 Oct 2015 15:50:43 +0000 (17:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:08:16 +0000 (19:08 -0700)
This patch fixes coding style violations by making alignments match
open parenthesis.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c
drivers/staging/most/hdm-dim2/dim2_hal.c
drivers/staging/most/hdm-dim2/dim2_hdm.c
drivers/staging/most/hdm-i2c/hdm_i2c.c
drivers/staging/most/mostcore/core.c

index 49411b7..be81a6a 100644 (file)
@@ -100,7 +100,7 @@ static int aim_open(struct inode *inode, struct file *filp)
        }
 
        ret = most_start_channel(channel->iface, channel->channel_id,
-                               &cdev_aim);
+                                &cdev_aim);
        if (ret)
                atomic_dec(&channel->access_ref);
        return ret;
index 096eb8b..c915c44 100644 (file)
@@ -863,7 +863,7 @@ u8 DIM_ServiceChannel(struct dim_channel *ch)
 }
 
 struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch,
-               struct dim_ch_state_t *state_ptr)
+                                          struct dim_ch_state_t *state_ptr)
 {
        if (!ch || !state_ptr)
                return NULL;
index c912a6e..ba4fbb1 100644 (file)
@@ -398,7 +398,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
 }
 
 static struct dim_channel **get_active_channels(struct dim2_hdm *dev,
-               struct dim_channel **buffer)
+                                               struct dim_channel **buffer)
 {
        int idx = 0;
        int ch_idx;
index 8fe06ac..711fdbc 100644 (file)
@@ -92,10 +92,9 @@ static int configure_channel(struct most_interface *most_iface,
                return -EPERM;
        }
 
-       if (channel_config->direction == MOST_CH_RX) {
-               if (dev->polling_mode)
-                       schedule_delayed_work(&dev->rx.dwork,
-                                       msecs_to_jiffies(MSEC_PER_SEC / 4));
+       if ((channel_config->direction == MOST_CH_RX) && (dev->polling_mode)) {
+               schedule_delayed_work(&dev->rx.dwork,
+                                     msecs_to_jiffies(MSEC_PER_SEC / 4));
        }
        dev->is_open[ch_idx] = true;
 
index 276ca24..8768475 100644 (file)
@@ -247,8 +247,8 @@ static void most_channel_release(struct kobject *kobj)
 }
 
 static ssize_t show_available_directions(struct most_c_obj *c,
-               struct most_c_attr *attr,
-               char *buf)
+                                        struct most_c_attr *attr,
+                                        char *buf)
 {
        unsigned int i = c->channel_id;