iio: core: Forbid use of both labels and extended names
authorPaul Cercueil <paul@crapouillou.net>
Fri, 18 Jun 2021 12:30:04 +0000 (13:30 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 19 Jul 2021 08:51:59 +0000 (09:51 +0100)
commit0e0761f86f10253425edac56df9950c172b923ea
tree4aba4800d82fb01f5714be966c860d23123d2175
parente46a36d92da0ded4e8519bc46912edc0d5a9f4a7
iio: core: Forbid use of both labels and extended names

Extended names are a problem for user-space as they make the filenames
in sysfs sometimes not parsable. They are now deprecated in favor of
labels.

This change makes sure that a device driver won't provide both labels
and extended names for its channels. It has never been the case and we
don't want it to happen.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210618123005.49867-2-paul@crapouillou.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-core.c