hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/dvb-frontends/af9033.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Afatech AF9033 demodulator driver
34 *
45 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
56 * Copyright (C) 2012 Antti Palosaari <crope@iki.fi>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
189 #include "af9033_priv.h"
....@@ -1137,16 +1128,8 @@
11371128 buf[4], buf[5], buf[6], buf[7]);
11381129
11391130 /* Sleep as chip seems to be partly active by default */
1140
- switch (dev->cfg.tuner) {
1141
- case AF9033_TUNER_IT9135_38:
1142
- case AF9033_TUNER_IT9135_51:
1143
- case AF9033_TUNER_IT9135_52:
1144
- case AF9033_TUNER_IT9135_60:
1145
- case AF9033_TUNER_IT9135_61:
1146
- case AF9033_TUNER_IT9135_62:
1147
- /* IT9135 did not like to sleep at that early */
1148
- break;
1149
- default:
1131
+ /* IT9135 did not like to sleep at that early */
1132
+ if (dev->is_af9035) {
11501133 ret = regmap_write(dev->regmap, 0x80004c, 0x01);
11511134 if (ret)
11521135 goto err_regmap_exit;