]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: acpi: Add iio_get_acpi_device_name_and_data() helper function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Oct 2024 19:04:54 +0000 (22:04 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 28 Oct 2024 20:04:11 +0000 (20:04 +0000)
commitdc60de4eb0a431bde94e5abe55be6f646cdb435d
treed1bea765f18e8c59b78392a2a55d9fc9cd347f17
parentd411e5b5aada96d18111e93e9341e944e61ff997
iio: acpi: Add iio_get_acpi_device_name_and_data() helper function

A few drivers duplicate the code to retrieve ACPI device instance name.
Some of them want an associated driver data as well.

In order of deduplication introduce the common helper functions.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241024191200.229894-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-acpi.c
include/linux/iio/iio.h