]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: usb: fcp: Fix return code from poll ops
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Jan 2025 17:00:31 +0000 (18:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Jan 2025 17:01:55 +0000 (18:01 +0100)
Fix a sparse warning due to the invalid return type from poll ops,
which is __poll_t.

Fixes: 46757a3e7d50 ("ALSA: FCP: Add Focusrite Control Protocol driver")
Link: https://patch.msgid.link/20250121170032.7236-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/fcp.c

index cfa131b35e4391e79f1096a1e1e4d9150dcf456e..7df65041ace5563fe1541a2e5e98daed2eb92a44 100644 (file)
@@ -843,18 +843,18 @@ static long fcp_hwdep_read(struct snd_hwdep *hw, char __user *buf,
        return sizeof(event);
 }
 
-static unsigned int fcp_hwdep_poll(struct snd_hwdep *hw,
-                                  struct file *file,
-                                  poll_table *wait)
+static __poll_t fcp_hwdep_poll(struct snd_hwdep *hw,
+                              struct file *file,
+                              poll_table *wait)
 {
        struct usb_mixer_interface *mixer = hw->private_data;
        struct fcp_data *private = mixer->private_data;
-       unsigned int mask = 0;
+       __poll_t mask = 0;
 
        poll_wait(file, &private->notify.queue, wait);
 
        if (private->notify.event)
-               mask |= POLLIN | POLLRDNORM;
+               mask |= EPOLLIN | EPOLLRDNORM;
 
        return mask;
 }