summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-01-21 18:00:31 +0100
committerTakashi Iwai <tiwai@suse.de>2025-01-21 18:01:55 +0100
commit0a8f5f4652ef4d530a7cb8bed2b6e502cdfa825f (patch)
treeb9fc06b2b4197ccd7302a0547c46bccb0949c779 /sound/usb
parentf08cc80f69be62beb7a63cd4813c7989c8708831 (diff)
downloadlinux-0a8f5f4652ef4d530a7cb8bed2b6e502cdfa825f.tar.gz
linux-0a8f5f4652ef4d530a7cb8bed2b6e502cdfa825f.tar.bz2
linux-0a8f5f4652ef4d530a7cb8bed2b6e502cdfa825f.zip
ALSA: usb: fcp: Fix return code from poll ops
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>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/fcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/usb/fcp.c b/sound/usb/fcp.c
index cfa131b35e43..7df65041ace5 100644
--- a/sound/usb/fcp.c
+++ b/sound/usb/fcp.c
@@ -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;
}