m88ds3103.c (06487dee53ae1574fb9637a4c243287ea92ab69d) m88ds3103.c (4fc578768c81f2dd20eee037eaf1be44a19779b2)
1/*
2 * Montage M88DS3103 demodulator driver
3 *
4 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1145 unchanged lines hidden (view full) ---

1154 .len = 2,
1155 .buf = "\x03\x11",
1156 }
1157 };
1158
1159 mutex_lock(&priv->i2c_mutex);
1160
1161 /* open tuner I2C repeater for 1 xfer, closes automatically */
1/*
2 * Montage M88DS3103 demodulator driver
3 *
4 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1145 unchanged lines hidden (view full) ---

1154 .len = 2,
1155 .buf = "\x03\x11",
1156 }
1157 };
1158
1159 mutex_lock(&priv->i2c_mutex);
1160
1161 /* open tuner I2C repeater for 1 xfer, closes automatically */
1162 ret = i2c_transfer(priv->i2c, gate_open_msg, 1);
1162 ret = __i2c_transfer(priv->i2c, gate_open_msg, 1);
1163 if (ret != 1) {
1164 dev_warn(&priv->i2c->dev, "%s: i2c wr failed=%d\n",
1165 KBUILD_MODNAME, ret);
1166 if (ret >= 0)
1167 ret = -EREMOTEIO;
1168
1169 return ret;
1170 }

--- 144 unchanged lines hidden ---
1163 if (ret != 1) {
1164 dev_warn(&priv->i2c->dev, "%s: i2c wr failed=%d\n",
1165 KBUILD_MODNAME, ret);
1166 if (ret >= 0)
1167 ret = -EREMOTEIO;
1168
1169 return ret;
1170 }

--- 144 unchanged lines hidden ---