Skip to content

Commit 0a8f5f4

Browse files
committed
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: 46757a3 ("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>
1 parent f08cc80 commit 0a8f5f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sound/usb/fcp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,18 +843,18 @@ static long fcp_hwdep_read(struct snd_hwdep *hw, char __user *buf,
843843
return sizeof(event);
844844
}
845845

846-
static unsigned int fcp_hwdep_poll(struct snd_hwdep *hw,
847-
struct file *file,
848-
poll_table *wait)
846+
static __poll_t fcp_hwdep_poll(struct snd_hwdep *hw,
847+
struct file *file,
848+
poll_table *wait)
849849
{
850850
struct usb_mixer_interface *mixer = hw->private_data;
851851
struct fcp_data *private = mixer->private_data;
852-
unsigned int mask = 0;
852+
__poll_t mask = 0;
853853

854854
poll_wait(file, &private->notify.queue, wait);
855855

856856
if (private->notify.event)
857-
mask |= POLLIN | POLLRDNORM;
857+
mask |= EPOLLIN | EPOLLRDNORM;
858858

859859
return mask;
860860
}

0 commit comments

Comments
 (0)