diff options
author | Benson Leung <bleung@chromium.org> | 2018-07-09 16:36:00 -0700 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2018-07-09 16:36:00 -0700 |
commit | 40291fb75123816b35ba06696e56b9cf2d96bf90 (patch) | |
tree | dfff532af8df1c06ca83466c8347873426a81579 /include/linux/poll.h | |
parent | c474e9f2be9992861d926eea3e5d4fb393cd6e2a (diff) | |
parent | 413c94469a9db26ac4e1d16bf8de0248de93e2d8 (diff) |
Merge tag 'ib-platform-chrome-mfd-move-cros-ec-transport-for-4.19' into working-branch-for-4.19
Immutable branch (mfd, chrome) due for the v4.19 window
Immutable Branch which moves the cros_ec_i2c and cros_ec_spi
transport drivers from mfd to platform/chrome. Changes in arm are a simple
rename in defconfigs. Change in input is a rename in help text.
Diffstat (limited to 'include/linux/poll.h')
-rw-r--r-- | include/linux/poll.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/poll.h b/include/linux/poll.h index fdf86b4cbc71..7e0fdcf905d2 100644 --- a/include/linux/poll.h +++ b/include/linux/poll.h @@ -74,18 +74,18 @@ static inline void init_poll_funcptr(poll_table *pt, poll_queue_proc qproc) pt->_key = ~(__poll_t)0; /* all events enabled */ } -static inline bool file_has_poll_mask(struct file *file) +static inline bool file_can_poll(struct file *file) { - return file->f_op->get_poll_head && file->f_op->poll_mask; + return file->f_op->poll; } -static inline bool file_can_poll(struct file *file) +static inline __poll_t vfs_poll(struct file *file, struct poll_table_struct *pt) { - return file->f_op->poll || file_has_poll_mask(file); + if (unlikely(!file->f_op->poll)) + return DEFAULT_POLLMASK; + return file->f_op->poll(file, pt); } -__poll_t vfs_poll(struct file *file, struct poll_table_struct *pt); - struct poll_table_entry { struct file *filp; __poll_t key; |