summaryrefslogtreecommitdiff
path: root/drivers/phy/phy-samsung-usb2.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2014-08-07 22:03:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-07-11 21:17:56 +0100
commit78b3321610bf920d7fceb1a0236faa881be0bcf3 (patch)
tree536c6f1e1bd90c1a8c486b7dd6af78f42db662e1 /drivers/phy/phy-samsung-usb2.c
parentbdac8ca90e07edde8bbef5396784f7011e6e5b8d (diff)
iio:core: Handle error when mask type is not separate
When event spec is shared by multiple channels, which has definition for mask_shared_by_type, iio_device_register_eventset fails. For example: static const struct iio_event_spec iio_dummy_events[] = { { .type = IIO_EV_TYPE_THRESH, .dir = IIO_EV_DIR_RISING, .mask_separate = BIT(IIO_EV_INFO_ENABLE), .mask_shared_by_type = BIT(IIO_EV_INFO_VALUE), }, { .type = IIO_EV_TYPE_THRESH, .dir = IIO_EV_DIR_FALLING, .mask_separate = BIT(IIO_EV_INFO_ENABLE),a .mask_shared_by_type = BIT(IIO_EV_INFO_VALUE), } }; If two channels use this event spec, this will result in error. This change handles EBUSY error similar to iio_device_add_info_mask_type(). Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Cc: Stable@vger.kernel.org
Diffstat (limited to 'drivers/phy/phy-samsung-usb2.c')
0 files changed, 0 insertions, 0 deletions