.. | .. |
---|
41 | 41 | #include <linux/delay.h> |
---|
42 | 42 | #include <linux/mutex.h> |
---|
43 | 43 | #include <linux/slab.h> |
---|
| 44 | +#include <linux/bitops.h> |
---|
44 | 45 | |
---|
45 | 46 | #include <linux/dvb/frontend.h> |
---|
46 | 47 | |
---|
.. | .. |
---|
141 | 142 | * These devices have AUTO recovery capabilities from LOCK failure |
---|
142 | 143 | */ |
---|
143 | 144 | enum dvbfe_algo { |
---|
144 | | - DVBFE_ALGO_HW = (1 << 0), |
---|
145 | | - DVBFE_ALGO_SW = (1 << 1), |
---|
146 | | - DVBFE_ALGO_CUSTOM = (1 << 2), |
---|
147 | | - DVBFE_ALGO_RECOVERY = (1 << 31) |
---|
| 145 | + DVBFE_ALGO_HW = BIT(0), |
---|
| 146 | + DVBFE_ALGO_SW = BIT(1), |
---|
| 147 | + DVBFE_ALGO_CUSTOM = BIT(2), |
---|
| 148 | + DVBFE_ALGO_RECOVERY = BIT(31), |
---|
148 | 149 | }; |
---|
149 | 150 | |
---|
150 | 151 | /** |
---|
.. | .. |
---|
160 | 161 | * The frontend search for a signal failed |
---|
161 | 162 | * |
---|
162 | 163 | * @DVBFE_ALGO_SEARCH_INVALID: |
---|
163 | | - * The frontend search algorith was probably supplied with invalid |
---|
| 164 | + * The frontend search algorithm was probably supplied with invalid |
---|
164 | 165 | * parameters and the search is an invalid one |
---|
165 | 166 | * |
---|
166 | 167 | * @DVBFE_ALGO_SEARCH_ERROR: |
---|
.. | .. |
---|
170 | 171 | * The frontend search algorithm was requested to search again |
---|
171 | 172 | */ |
---|
172 | 173 | enum dvbfe_search { |
---|
173 | | - DVBFE_ALGO_SEARCH_SUCCESS = (1 << 0), |
---|
174 | | - DVBFE_ALGO_SEARCH_ASLEEP = (1 << 1), |
---|
175 | | - DVBFE_ALGO_SEARCH_FAILED = (1 << 2), |
---|
176 | | - DVBFE_ALGO_SEARCH_INVALID = (1 << 3), |
---|
177 | | - DVBFE_ALGO_SEARCH_AGAIN = (1 << 4), |
---|
178 | | - DVBFE_ALGO_SEARCH_ERROR = (1 << 31), |
---|
| 174 | + DVBFE_ALGO_SEARCH_SUCCESS = BIT(0), |
---|
| 175 | + DVBFE_ALGO_SEARCH_ASLEEP = BIT(1), |
---|
| 176 | + DVBFE_ALGO_SEARCH_FAILED = BIT(2), |
---|
| 177 | + DVBFE_ALGO_SEARCH_INVALID = BIT(3), |
---|
| 178 | + DVBFE_ALGO_SEARCH_AGAIN = BIT(4), |
---|
| 179 | + DVBFE_ALGO_SEARCH_ERROR = BIT(31), |
---|
179 | 180 | }; |
---|
180 | 181 | |
---|
181 | 182 | /** |
---|
.. | .. |
---|
204 | 205 | * @set_config: callback function used to send some tuner-specific |
---|
205 | 206 | * parameters. |
---|
206 | 207 | * @get_frequency: get the actual tuned frequency |
---|
207 | | - * @get_bandwidth: get the bandwitdh used by the low pass filters |
---|
| 208 | + * @get_bandwidth: get the bandwidth used by the low pass filters |
---|
208 | 209 | * @get_if_frequency: get the Intermediate Frequency, in Hz. For baseband, |
---|
209 | 210 | * should return 0. |
---|
210 | 211 | * @get_status: returns the frontend lock status |
---|
.. | .. |
---|
232 | 233 | int (*suspend)(struct dvb_frontend *fe); |
---|
233 | 234 | int (*resume)(struct dvb_frontend *fe); |
---|
234 | 235 | |
---|
235 | | - /* This is the recomended way to set the tuner */ |
---|
| 236 | + /* This is the recommended way to set the tuner */ |
---|
236 | 237 | int (*set_params)(struct dvb_frontend *fe); |
---|
237 | 238 | int (*set_analog_params)(struct dvb_frontend *fe, struct analog_parameters *p); |
---|
238 | 239 | |
---|
.. | .. |
---|
358 | 359 | * @release: callback function called when frontend is ready to be |
---|
359 | 360 | * freed. |
---|
360 | 361 | * drivers should free any allocated memory. |
---|
361 | | - * @release_sec: callback function requesting that the Satelite Equipment |
---|
| 362 | + * @release_sec: callback function requesting that the Satellite Equipment |
---|
362 | 363 | * Control (SEC) driver to release and free any memory |
---|
363 | 364 | * allocated by the driver. |
---|
364 | 365 | * @init: callback function used to initialize the tuner device. |
---|