iio: Refuse to register triggers with duplicate names
authorCrestez Dan Leonard <leonard.crestez@intel.com>
Mon, 23 May 2016 18:40:01 +0000 (21:40 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Jun 2016 19:59:08 +0000 (20:59 +0100)
commit3b8e73ec822cecf62e68e12c5320cf329d69923a
treeca33f5e3d048d3152cfeabab3d7336c8388a03d1
parentdeb4d1fdcb5af079896f7ca5e8067e69485f6bdd
iio: Refuse to register triggers with duplicate names

The trigger name is documented as unique but drivers are currently
allowed to register triggers with duplicate names. This should be
considered a bug since it makes the 'current_trigger' interface
unusable.

Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-trigger.c