forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/media/dvb-core/dvb_ca_en50221.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * dvb_ca.c: generic DVB functions for EN50221 CAM interfaces
34 *
....@@ -11,18 +12,6 @@
1112 *
1213 * Copyright (C) 1999-2002 Ralph Metzler
1314 * & Marcus Metzler for convergence integrated media GmbH
14
- *
15
- * This program is free software; you can redistribute it and/or
16
- * modify it under the terms of the GNU General Public License
17
- * as published by the Free Software Foundation; either version 2
18
- * of the License, or (at your option) any later version.
19
- *
20
- * This program is distributed in the hope that it will be useful,
21
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- * GNU General Public License for more details.
24
- * To obtain the license, point your browser to
25
- * http://www.gnu.org/copyleft/gpl.html
2615 */
2716
2817 #define pr_fmt(fmt) "dvb_ca_en50221: " fmt
....@@ -1797,15 +1786,14 @@
17971786
17981787 dprintk("%s\n", __func__);
17991788
1789
+ poll_wait(file, &ca->wait_queue, wait);
1790
+
18001791 if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1)
18011792 mask |= EPOLLIN;
18021793
18031794 /* if there is something, return now */
18041795 if (mask)
18051796 return mask;
1806
-
1807
- /* wait for something to happen */
1808
- poll_wait(file, &ca->wait_queue, wait);
18091797
18101798 if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1)
18111799 mask |= EPOLLIN;