mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
c23e0cb81e
commit
afc9a42b74
144 changed files with 257 additions and 256 deletions
|
|
@ -724,11 +724,11 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos
|
|||
return count;
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
capi_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct capidev *cdev = file->private_data;
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
if (!cdev->ap.applid)
|
||||
return POLLERR;
|
||||
|
|
|
|||
|
|
@ -119,10 +119,10 @@ isdn_divert_write(struct file *file, const char __user *buf, size_t count, loff_
|
|||
/***************************************/
|
||||
/* select routines for various kernels */
|
||||
/***************************************/
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
isdn_divert_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
poll_wait(file, &(rd_queue), wait);
|
||||
/* mask = POLLOUT | POLLWRNORM; */
|
||||
|
|
|
|||
|
|
@ -98,9 +98,9 @@ void diva_os_get_time(dword *sec, dword *usec)
|
|||
/*
|
||||
* device node operations
|
||||
*/
|
||||
static unsigned int maint_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t maint_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
poll_wait(file, &msgwaitq, wait);
|
||||
mask = POLLOUT | POLLWRNORM;
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ static ssize_t um_idi_read(struct file *file, char __user *buf, size_t count,
|
|||
loff_t *offset);
|
||||
static ssize_t um_idi_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *offset);
|
||||
static unsigned int um_idi_poll(struct file *file, poll_table *wait);
|
||||
static __poll_t um_idi_poll(struct file *file, poll_table *wait);
|
||||
static int um_idi_open(struct inode *inode, struct file *file);
|
||||
static int um_idi_release(struct inode *inode, struct file *file);
|
||||
static int remove_entity(void *entity);
|
||||
|
|
@ -365,7 +365,7 @@ um_idi_write(struct file *file, const char __user *buf, size_t count,
|
|||
return (ret);
|
||||
}
|
||||
|
||||
static unsigned int um_idi_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t um_idi_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
diva_um_idi_os_context_t *p_os;
|
||||
|
||||
|
|
|
|||
|
|
@ -650,7 +650,7 @@ static ssize_t divas_read(struct file *file, char __user *buf,
|
|||
return (ret);
|
||||
}
|
||||
|
||||
static unsigned int divas_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t divas_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
if (!file->private_data) {
|
||||
return (POLLERR);
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ divas_write(struct file *file, const char __user *buf, size_t count, loff_t *off
|
|||
return (-ENODEV);
|
||||
}
|
||||
|
||||
static unsigned int divas_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t divas_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
return (POLLERR);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -281,10 +281,10 @@ hysdn_log_close(struct inode *ino, struct file *filep)
|
|||
/*************************************************/
|
||||
/* select/poll routine to be able using select() */
|
||||
/*************************************************/
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
hysdn_log_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
hysdn_card *card = PDE_DATA(file_inode(file));
|
||||
struct procdata *pd = card->proclog;
|
||||
|
||||
|
|
|
|||
|
|
@ -1227,10 +1227,10 @@ out:
|
|||
return retval;
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
isdn_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
unsigned int minor = iminor(file_inode(file));
|
||||
int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
|
||||
|
||||
|
|
|
|||
|
|
@ -685,10 +685,10 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
__poll_t
|
||||
isdn_ppp_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
u_int mask;
|
||||
__poll_t mask;
|
||||
struct ippp_buf_queue *bf, *bl;
|
||||
u_long flags;
|
||||
struct ippp_struct *is;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ extern int isdn_ppp_autodial_filter(struct sk_buff *, isdn_net_local *);
|
|||
extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *);
|
||||
extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
|
||||
extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int);
|
||||
extern unsigned int isdn_ppp_poll(struct file *, struct poll_table_struct *);
|
||||
extern __poll_t isdn_ppp_poll(struct file *, struct poll_table_struct *);
|
||||
extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
|
||||
extern void isdn_ppp_release(int, struct file *);
|
||||
extern int isdn_ppp_dial_slave(char *);
|
||||
|
|
|
|||
|
|
@ -141,11 +141,11 @@ mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
static __poll_t
|
||||
mISDN_poll(struct file *filep, poll_table *wait)
|
||||
{
|
||||
struct mISDNtimerdev *dev = filep->private_data;
|
||||
unsigned int mask = POLLERR;
|
||||
__poll_t mask = POLLERR;
|
||||
|
||||
if (*debug & DEBUG_TIMER)
|
||||
printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait);
|
||||
|
|
|
|||
Loading…
Reference in a new issue