forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/ddbridge/ddbridge-core.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * ddbridge-core.c: Digital Devices bridge core functions
34 *
....@@ -5,19 +6,14 @@
56 * Marcus Metzler <mocm@metzlerbros.de>
67 * Ralph Metzler <rjkm@metzlerbros.de>
78 *
8
- *
99 * This program is free software; you can redistribute it and/or
1010 * modify it under the terms of the GNU General Public License
1111 * version 2 only, as published by the Free Software Foundation.
12
- *
1312 *
1413 * This program is distributed in the hope that it will be useful,
1514 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1615 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1716 * GNU General Public License for more details.
18
- *
19
- * To obtain the license, point your browser to
20
- * http://www.gnu.org/copyleft/gpl.html
2117 */
2218
2319 #include <linux/module.h>
....@@ -54,7 +50,7 @@
5450 #include "stv6111.h"
5551 #include "lnbh25.h"
5652 #include "cxd2099.h"
57
-#include "dvb_dummy_fe.h"
53
+#include "ddbridge-dummy-fe.h"
5854
5955 /****************************************************************************/
6056
....@@ -1269,7 +1265,7 @@
12691265 struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
12701266 struct device *dev = input->port->dev->dev;
12711267
1272
- dvb->fe = dvb_attach(dvb_dummy_fe_qam_attach);
1268
+ dvb->fe = dvb_attach(ddbridge_dummy_fe_qam_attach);
12731269 if (!dvb->fe) {
12741270 dev_err(dev, "QAM dummy attach failed!\n");
12751271 return -ENODEV;
....@@ -1314,7 +1310,7 @@
13141310 dvb_unregister_frontend(dvb->fe2);
13151311 if (dvb->fe)
13161312 dvb_unregister_frontend(dvb->fe);
1317
- /* fallthrough */
1313
+ fallthrough;
13181314 case 0x30:
13191315 dvb_module_release(dvb->i2c_client[0]);
13201316 dvb->i2c_client[0] = NULL;
....@@ -1325,22 +1321,22 @@
13251321 dvb_frontend_detach(dvb->fe);
13261322 dvb->fe = NULL;
13271323 dvb->fe2 = NULL;
1328
- /* fallthrough */
1324
+ fallthrough;
13291325 case 0x20:
13301326 dvb_net_release(&dvb->dvbnet);
1331
- /* fallthrough */
1327
+ fallthrough;
13321328 case 0x12:
13331329 dvbdemux->dmx.remove_frontend(&dvbdemux->dmx,
13341330 &dvb->hw_frontend);
13351331 dvbdemux->dmx.remove_frontend(&dvbdemux->dmx,
13361332 &dvb->mem_frontend);
1337
- /* fallthrough */
1333
+ fallthrough;
13381334 case 0x11:
13391335 dvb_dmxdev_release(&dvb->dmxdev);
1340
- /* fallthrough */
1336
+ fallthrough;
13411337 case 0x10:
13421338 dvb_dmx_release(&dvb->demux);
1343
- /* fallthrough */
1339
+ fallthrough;
13441340 case 0x01:
13451341 break;
13461342 }
....@@ -1563,7 +1559,7 @@
15631559 osc24 = 0;
15641560 else
15651561 osc24 = 1;
1566
- /* fall-through */
1562
+ fallthrough;
15671563 case DDB_TUNER_DVBCT2_SONY_P:
15681564 case DDB_TUNER_DVBC2T2_SONY_P:
15691565 case DDB_TUNER_ISDBT_SONY_P:
....@@ -1579,7 +1575,7 @@
15791575 break;
15801576 case DDB_TUNER_DVBC2T2I_SONY:
15811577 osc24 = 1;
1582
- /* fall-through */
1578
+ fallthrough;
15831579 case DDB_TUNER_DVBCT2_SONY:
15841580 case DDB_TUNER_DVBC2T2_SONY:
15851581 case DDB_TUNER_ISDBT_SONY:
....@@ -2040,7 +2036,7 @@
20402036 ret = ddb_ci_attach(port, ci_bitrate);
20412037 if (ret < 0)
20422038 break;
2043
- /* fall-through */
2039
+ fallthrough;
20442040 case DDB_PORT_LOOP:
20452041 ret = dvb_register_device(port->dvb[0].adap,
20462042 &port->dvb[0].dev,
....@@ -2436,7 +2432,8 @@
24362432 ddb_input_init(port, 4 + i, 1, 4 + i);
24372433 ddb_output_init(port, i);
24382434 break;
2439
- } /* fallthrough */
2435
+ }
2436
+ fallthrough;
24402437 case DDB_OCTOPUS:
24412438 ddb_input_init(port, 2 * i, 0, 2 * i);
24422439 ddb_input_init(port, 2 * i + 1, 1, 2 * i + 1);
....@@ -3421,7 +3418,7 @@
34213418 default:
34223419 case 2:
34233420 destroy_workqueue(ddb_wq);
3424
- /* fall-through */
3421
+ fallthrough;
34253422 case 1:
34263423 ddb_class_destroy();
34273424 break;