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>
This commit is contained in:
Christian Gromm
2015-10-15 13:28:55 +02:00
committed by Greg Kroah-Hartman
parent ff466a5bc2
commit bfa1a42ec3
+4 -3
View File
@@ -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;
}
}