]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: Add iio_read_channel_label to inkern API
authorSean Anderson <sean.anderson@linux.dev>
Mon, 24 Jun 2024 17:46:00 +0000 (13:46 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 28 Jun 2024 19:06:56 +0000 (20:06 +0100)
commit0214b27fc949a7bcaf57e71a7f9f534d6481d08b
tree090c37d9f0766db77237066fb92ba07be6da57cf
parent9641972917d69790ef55ef4d434b564955432d1f
iio: Add iio_read_channel_label to inkern API

It can be convenient for other in-kernel drivers to reuse IIO channel
labels. Export the iio_read_channel_label function to allow this. The
signature is different depending on where we are calling it from, so
the meat is moved to do_iio_read_channel_label.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240624174601.1527244-2-sean.anderson@linux.dev
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/iio_core.h
drivers/iio/industrialio-core.c
drivers/iio/inkern.c
include/linux/iio/consumer.h