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

staging: most: fix checkpatch issues of hdm i2c

This patch fixes the issues of HDM module i2c found by checkpatch.pl
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ff466a5b
...@@ -222,7 +222,8 @@ static void do_rx_work(struct hdm_i2c *dev) ...@@ -222,7 +222,8 @@ static void do_rx_work(struct hdm_i2c *dev)
for (;;) { for (;;) {
/* Conditions to wait for: poisoned channel or free buffer /* Conditions to wait for: poisoned channel or free buffer
available for reading */ * available for reading
*/
if (wait_event_interruptible(dev->rx.waitq, if (wait_event_interruptible(dev->rx.waitq,
!dev->is_open[ch_idx] || !dev->is_open[ch_idx] ||
!list_empty(&dev->rx.list))) { !list_empty(&dev->rx.list))) {
...@@ -367,8 +368,8 @@ static int i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -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, ret = request_irq(client->irq, most_irq_handler, 0,
client->name, dev); client->name, dev);
if (ret) { if (ret) {
pr_info("IRQ request failed: %d, " pr_info("IRQ request failed: %d, falling back to polling\n",
"falling back to polling\n", ret); ret);
dev->polling_mode = true; dev->polling_mode = true;
} }
} }
......
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