Commit 09a446d2 authored by Victor Toso's avatar Victor Toso Committed by Mauro Carvalho Chehab

media: af9033: Remove duplicated switch statement

The switch before set is_af9035 or is_it9135 which makes the second
switch redundant. Keeping the comment as to avoid sleep on IT9135.
Signed-off-by: default avatarVictor Toso <me@victortoso.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 6bca5de9
...@@ -1137,16 +1137,8 @@ static int af9033_probe(struct i2c_client *client, ...@@ -1137,16 +1137,8 @@ static int af9033_probe(struct i2c_client *client,
buf[4], buf[5], buf[6], buf[7]); buf[4], buf[5], buf[6], buf[7]);
/* Sleep as chip seems to be partly active by default */ /* Sleep as chip seems to be partly active by default */
switch (dev->cfg.tuner) {
case AF9033_TUNER_IT9135_38:
case AF9033_TUNER_IT9135_51:
case AF9033_TUNER_IT9135_52:
case AF9033_TUNER_IT9135_60:
case AF9033_TUNER_IT9135_61:
case AF9033_TUNER_IT9135_62:
/* IT9135 did not like to sleep at that early */ /* IT9135 did not like to sleep at that early */
break; if (dev->is_af9035) {
default:
ret = regmap_write(dev->regmap, 0x80004c, 0x01); ret = regmap_write(dev->regmap, 0x80004c, 0x01);
if (ret) if (ret)
goto err_regmap_exit; goto err_regmap_exit;
......
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