Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: proximity: sx_common: Allow IIO core to take care of firmware node

IIO core correctly will take care of firmware node if it's not set in
the driver. Drop ACPI and OF specifics from the driver and allow IIO
core to handle this.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20220615114746.2767-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
f1e252c5 7008f35c

-3
-3
drivers/iio/proximity/sx_common.c
··· 5 5 * Common part of most Semtech SAR sensor. 6 6 */ 7 7 8 - #include <linux/acpi.h> 9 8 #include <linux/bitops.h> 10 9 #include <linux/byteorder/generic.h> 11 10 #include <linux/delay.h> ··· 518 519 if (ret) 519 520 return dev_err_probe(dev, ret, "error reading WHOAMI\n"); 520 521 521 - ACPI_COMPANION_SET(&indio_dev->dev, ACPI_COMPANION(dev)); 522 - indio_dev->dev.of_node = client->dev.of_node; 523 522 indio_dev->modes = INDIO_DIRECT_MODE; 524 523 525 524 indio_dev->channels = data->chip_info->iio_channels;