]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 49411b722f1967a0e4246c7a13ac89ac3ceb5908..be81a6a57ab00b5cc7f3d856012c5a43045bd4a3 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 096eb8bc9ef6e0d60ec8471ae66a231d7a495c22..c915c44f025e55d74fabdabdf83f0095f1e26694 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 c912a6e1159b8ffc5837dc674c6038b079df7a0f..ba4fbb1aa13c27b3ae3ec02b4d807b29f36829ae 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 8fe06acefdf37329d5ecec26a0382d42f606dc69..711fdbc30d359a5ee7df47c8acc698e0f9158052 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 276ca24e5c8eb00db639cd81720f04339fa6c0c4..8768475b5d9c96bf9d19a8273b590465b6b584c9 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;