50 dev_warn(&priv->
i2c->dev,
"%s: i2c failed=%d rd=%d\n",
51 KBUILD_MODNAME, ret, rd);
58 static int a8293_wr(
struct a8293_priv *priv,
u8 *val,
int len)
60 return a8293_i2c(priv, val, len, 0);
63 static int a8293_rd(
struct a8293_priv *priv,
u8 *val,
int len)
65 return a8293_i2c(priv, val, len, 1);
74 dev_dbg(&priv->
i2c->dev,
"%s: fe_sec_voltage=%d\n", __func__,
77 switch (fe_sec_voltage) {
95 ret = a8293_wr(priv, &priv->
reg[0], 1);
101 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
133 ret = a8293_rd(priv, buf, 2);
139 ret = a8293_wr(priv, &priv->
reg[0], 1);
145 ret = a8293_wr(priv, &priv->
reg[1], 1);
149 fe->
ops.release_sec = a8293_release_sec;
152 fe->
ops.set_voltage = a8293_set_voltage;
154 dev_info(&priv->
i2c->dev,
"%s: Allegro A8293 SEC attached\n",
159 dev_dbg(&i2c->
dev,
"%s: failed=%d\n", __func__, ret);