treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
[sfrench/cifs-2.6.git] / drivers / media / usb / cpia2 / cpia2_core.c
index e7524920c6187ed7e07346f504c2362369883701..20c50c2d042e6386f9ef2eb3947d73421a4d4af9 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /****************************************************************************
  *
  *  Filename: cpia2_core.c
  *     The infrastructure of this driver is based on the cpia usb driver by
  *     Jochen Scharrlach and Johannes Erdfeldt.
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
  *  Stripped of 2.4 stuff ready for main kernel submit by
  *             Alan Cox <alan@lxorguk.ukuu.org.uk>
  *
@@ -2375,7 +2366,7 @@ __poll_t cpia2_poll(struct camera_data *cam, struct file *filp,
 {
        __poll_t status = v4l2_ctrl_poll(filp, wait);
 
-       if ((poll_requested_events(wait) & (POLLIN | POLLRDNORM)) &&
+       if ((poll_requested_events(wait) & (EPOLLIN | EPOLLRDNORM)) &&
                        !cam->streaming) {
                /* Start streaming */
                cpia2_usb_stream_start(cam,
@@ -2385,7 +2376,7 @@ __poll_t cpia2_poll(struct camera_data *cam, struct file *filp,
        poll_wait(filp, &cam->wq_stream, wait);
 
        if (cam->curbuff->status == FRAME_READY)
-               status |= POLLIN | POLLRDNORM;
+               status |= EPOLLIN | EPOLLRDNORM;
 
        return status;
 }