hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/media/dvb_frontend.h
....@@ -41,6 +41,7 @@
4141 #include <linux/delay.h>
4242 #include <linux/mutex.h>
4343 #include <linux/slab.h>
44
+#include <linux/bitops.h>
4445
4546 #include <linux/dvb/frontend.h>
4647
....@@ -141,10 +142,10 @@
141142 * These devices have AUTO recovery capabilities from LOCK failure
142143 */
143144 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),
148149 };
149150
150151 /**
....@@ -160,7 +161,7 @@
160161 * The frontend search for a signal failed
161162 *
162163 * @DVBFE_ALGO_SEARCH_INVALID:
163
- * The frontend search algorith was probably supplied with invalid
164
+ * The frontend search algorithm was probably supplied with invalid
164165 * parameters and the search is an invalid one
165166 *
166167 * @DVBFE_ALGO_SEARCH_ERROR:
....@@ -170,12 +171,12 @@
170171 * The frontend search algorithm was requested to search again
171172 */
172173 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),
179180 };
180181
181182 /**
....@@ -204,7 +205,7 @@
204205 * @set_config: callback function used to send some tuner-specific
205206 * parameters.
206207 * @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
208209 * @get_if_frequency: get the Intermediate Frequency, in Hz. For baseband,
209210 * should return 0.
210211 * @get_status: returns the frontend lock status
....@@ -232,7 +233,7 @@
232233 int (*suspend)(struct dvb_frontend *fe);
233234 int (*resume)(struct dvb_frontend *fe);
234235
235
- /* This is the recomended way to set the tuner */
236
+ /* This is the recommended way to set the tuner */
236237 int (*set_params)(struct dvb_frontend *fe);
237238 int (*set_analog_params)(struct dvb_frontend *fe, struct analog_parameters *p);
238239
....@@ -358,7 +359,7 @@
358359 * @release: callback function called when frontend is ready to be
359360 * freed.
360361 * 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
362363 * Control (SEC) driver to release and free any memory
363364 * allocated by the driver.
364365 * @init: callback function used to initialize the tuner device.