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: light: cm32181: Remove duplicate ACPI handle check

cm32181_acpi_parse_cpm_tables() is a no-op if ACPI handle
is not available. Remove duplicate ACPI handle check at
the caller side.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://patch.msgid.link/20240904183646.1219485-1-andy.shevchenko@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
1d562313 7e1df2ca

+1 -2
+1 -2
drivers/iio/light/cm32181.c
··· 217 217 cm32181->lux_per_bit = CM32181_LUX_PER_BIT; 218 218 cm32181->lux_per_bit_base_it = CM32181_LUX_PER_BIT_BASE_IT; 219 219 220 - if (ACPI_HANDLE(cm32181->dev)) 221 - cm32181_acpi_parse_cpm_tables(cm32181); 220 + cm32181_acpi_parse_cpm_tables(cm32181); 222 221 223 222 /* Initialize registers*/ 224 223 for_each_set_bit(i, &cm32181->init_regs_bitmap, CM32181_CONF_REG_NUM) {