summaryrefslogtreecommitdiff
path: root/drivers/staging/most/hdm-i2c
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-10-15 11:28:55 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 06:09:41 (GMT)
commitbfa1a42ec367afd82d70298e451a1ca1cf4989ce (patch)
tree487095d5b0bac9d2084fd00f788f45ff2a63ac00 /drivers/staging/most/hdm-i2c
parentff466a5bc26af4f2bed11cd6adf625c6e57e0242 (diff)
downloadlinux-bfa1a42ec367afd82d70298e451a1ca1cf4989ce.tar.xz
staging: most: fix checkpatch issues of hdm i2c
This patch fixes the issues of HDM module i2c found by checkpatch.pl Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/hdm-i2c')
-rw-r--r--drivers/staging/most/hdm-i2c/hdm_i2c.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/most/hdm-i2c/hdm_i2c.c b/drivers/staging/most/hdm-i2c/hdm_i2c.c
index 9768281..2cce1e5 100644
--- a/drivers/staging/most/hdm-i2c/hdm_i2c.c
+++ b/drivers/staging/most/hdm-i2c/hdm_i2c.c
@@ -96,7 +96,7 @@ static int configure_channel(struct most_interface *most_iface,
if (channel_config->direction == MOST_CH_RX) {
if (dev->polling_mode)
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;
@@ -222,7 +222,8 @@ static void do_rx_work(struct hdm_i2c *dev)
for (;;) {
/* Conditions to wait for: poisoned channel or free buffer
- available for reading */
+ * available for reading
+ */
if (wait_event_interruptible(dev->rx.waitq,
!dev->is_open[ch_idx] ||
!list_empty(&dev->rx.list))) {
@@ -367,8 +368,8 @@ static int i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
ret = request_irq(client->irq, most_irq_handler, 0,
client->name, dev);
if (ret) {
- pr_info("IRQ request failed: %d, "
- "falling back to polling\n", ret);
+ pr_info("IRQ request failed: %d, falling back to polling\n",
+ ret);
dev->polling_mode = true;
}
}