kernel-ark/drivers/iio
Linus Torvalds 168fe32a07 Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull poll annotations from Al Viro:
 "This introduces a __bitwise type for POLL### bitmap, and propagates
  the annotations through the tree. Most of that stuff is as simple as
  'make ->poll() instances return __poll_t and do the same to local
  variables used to hold the future return value'.

  Some of the obvious brainos found in process are fixed (e.g. POLLIN
  misspelled as POLL_IN). At that point the amount of sparse warnings is
  low and most of them are for genuine bugs - e.g. ->poll() instance
  deciding to return -EINVAL instead of a bitmap. I hadn't touched those
  in this series - it's large enough as it is.

  Another problem it has caught was eventpoll() ABI mess; select.c and
  eventpoll.c assumed that corresponding POLL### and EPOLL### were
  equal. That's true for some, but not all of them - EPOLL### are
  arch-independent, but POLL### are not.

  The last commit in this series separates userland POLL### values from
  the (now arch-independent) kernel-side ones, converting between them
  in the few places where they are copied to/from userland. AFAICS, this
  is the least disruptive fix preserving poll(2) ABI and making epoll()
  work on all architectures.

  As it is, it's simply broken on sparc - try to give it EPOLLWRNORM and
  it will trigger only on what would've triggered EPOLLWRBAND on other
  architectures. EPOLLWRBAND and EPOLLRDHUP, OTOH, are never triggered
  at all on sparc. With this patch they should work consistently on all
  architectures"

* 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (37 commits)
  make kernel-side POLL... arch-independent
  eventpoll: no need to mask the result of epi_item_poll() again
  eventpoll: constify struct epoll_event pointers
  debugging printk in sg_poll() uses %x to print POLL... bitmap
  annotate poll(2) guts
  9p: untangle ->poll() mess
  ->si_band gets POLL... bitmap stored into a user-visible long field
  ring_buffer_poll_wait() return value used as return value of ->poll()
  the rest of drivers/*: annotate ->poll() instances
  media: annotate ->poll() instances
  fs: annotate ->poll() instances
  ipc, kernel, mm: annotate ->poll() instances
  net: annotate ->poll() instances
  apparmor: annotate ->poll() instances
  tomoyo: annotate ->poll() instances
  sound: annotate ->poll() instances
  acpi: annotate ->poll() instances
  crypto: annotate ->poll() instances
  block: annotate ->poll() instances
  x86: annotate ->poll() instances
  ...
2018-01-30 17:58:07 -08:00
..
accel Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
adc Merge remote-tracking branches 'asoc/topic/hisilicon', 'asoc/topic/iio', 'asoc/topic/max98373' and 'asoc/topic/max98926' into asoc-next 2018-01-18 11:55:59 +00:00
amplifiers
buffer IIO: consumer: allow to set buffer sizes 2018-01-10 10:30:14 +00:00
chemical iio: chemical: ccs811: Add support for data ready trigger 2017-09-24 12:34:36 +01:00
common treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
counter iio:stm32-lp-timer and ep93xx: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-09-26 09:38:57 +02:00
dac Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
dummy A couple of configfs cleanups: 2017-11-14 14:44:04 -08:00
frequency
gyro Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
health iio: health: max30102: Temperature should be in milli Celsius 2017-12-02 11:15:14 +00:00
humidity Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
imu Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
light Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
magnetometer Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
multiplexer
orientation
potentiometer Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
potentiostat
pressure Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
proximity iio: proximity: sx9500: Assign interrupt from GpioIo() 2017-12-02 11:15:13 +00:00
temperature Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
trigger A couple of configfs cleanups: 2017-11-14 14:44:04 -08:00
iio_core_trigger.h
iio_core.h the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
industrialio-buffer.c the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
industrialio-configfs.c iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
industrialio-core.c iio: fix kernel-doc build errors 2017-12-02 11:15:14 +00:00
industrialio-event.c the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
industrialio-sw-device.c iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
industrialio-sw-trigger.c iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c IIO: inkern: API for manipulating channel attributes 2018-01-10 10:30:08 +00:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00