]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: bma220: move set_wdt() out of bma220_core
authorPetre Rodan <petre.rodan@subdimension.ro>
Tue, 21 Oct 2025 10:31:49 +0000 (13:31 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 12:57:03 +0000 (12:57 +0000)
commitdb52c405f352f809b6ff96466fe5456b0220e354
tree7ddea7bd82e03ce891a6757bfd9aa1f6f01ef015
parent6f3d8de8886dae587467e1a2600d3bff4ad23e30
iio: accel: bma220: move set_wdt() out of bma220_core

Move bma220_set_wdt() into bma220_i2c.c instead of using a conditional
based on i2c_verify_client() in bma220_core.c that would make core
always depend on the i2c module.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510102117.Jqxrw1vF-lkp@intel.com/
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma220.h
drivers/iio/accel/bma220_core.c
drivers/iio/accel/bma220_i2c.c