Commit edaa1e33 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: make alignment match open parenthesis

This patch fixes coding style violations by making alignments match
open parenthesis.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c6c3f345
...@@ -100,7 +100,7 @@ static int aim_open(struct inode *inode, struct file *filp) ...@@ -100,7 +100,7 @@ static int aim_open(struct inode *inode, struct file *filp)
} }
ret = most_start_channel(channel->iface, channel->channel_id, ret = most_start_channel(channel->iface, channel->channel_id,
&cdev_aim); &cdev_aim);
if (ret) if (ret)
atomic_dec(&channel->access_ref); atomic_dec(&channel->access_ref);
return ret; return ret;
......
...@@ -863,7 +863,7 @@ u8 DIM_ServiceChannel(struct dim_channel *ch) ...@@ -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 *DIM_GetChannelState(struct dim_channel *ch,
struct dim_ch_state_t *state_ptr) struct dim_ch_state_t *state_ptr)
{ {
if (!ch || !state_ptr) if (!ch || !state_ptr)
return NULL; return NULL;
......
...@@ -398,7 +398,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx) ...@@ -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, static struct dim_channel **get_active_channels(struct dim2_hdm *dev,
struct dim_channel **buffer) struct dim_channel **buffer)
{ {
int idx = 0; int idx = 0;
int ch_idx; int ch_idx;
......
...@@ -92,10 +92,9 @@ static int configure_channel(struct most_interface *most_iface, ...@@ -92,10 +92,9 @@ static int configure_channel(struct most_interface *most_iface,
return -EPERM; return -EPERM;
} }
if (channel_config->direction == MOST_CH_RX) { if ((channel_config->direction == MOST_CH_RX) && (dev->polling_mode)) {
if (dev->polling_mode) schedule_delayed_work(&dev->rx.dwork,
schedule_delayed_work(&dev->rx.dwork, msecs_to_jiffies(MSEC_PER_SEC / 4));
msecs_to_jiffies(MSEC_PER_SEC / 4));
} }
dev->is_open[ch_idx] = true; dev->is_open[ch_idx] = true;
......
...@@ -247,8 +247,8 @@ static void most_channel_release(struct kobject *kobj) ...@@ -247,8 +247,8 @@ static void most_channel_release(struct kobject *kobj)
} }
static ssize_t show_available_directions(struct most_c_obj *c, static ssize_t show_available_directions(struct most_c_obj *c,
struct most_c_attr *attr, struct most_c_attr *attr,
char *buf) char *buf)
{ {
unsigned int i = c->channel_id; unsigned int i = c->channel_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment