Commit 0a8f5f46 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: 46757a3e ("ALSA: FCP: Add Focusrite Control Protocol driver")
Link: https://patch.msgid.link/20250121170032.7236-4-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f08cc80f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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,
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;
}