.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Afatech AF9033 demodulator driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2009 Antti Palosaari <crope@iki.fi> |
---|
5 | 6 | * 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. |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #include "af9033_priv.h" |
---|
.. | .. |
---|
1137 | 1128 | buf[4], buf[5], buf[6], buf[7]); |
---|
1138 | 1129 | |
---|
1139 | 1130 | /* 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) { |
---|
1150 | 1133 | ret = regmap_write(dev->regmap, 0x80004c, 0x01); |
---|
1151 | 1134 | if (ret) |
---|
1152 | 1135 | goto err_regmap_exit; |
---|