]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: bma220: split original driver
authorPetre Rodan <petre.rodan@subdimension.ro>
Sun, 5 Oct 2025 13:12:16 +0000 (16:12 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Oct 2025 10:59:19 +0000 (11:59 +0100)
commitc785d9803b861ad1ebf52386c7ac2fa6ee54d355
tree48b805ba231a08df8736eb14105e16435a44aadf
parent7fe8e142f1edc770bb90aa0559c5c9ae6c17ffdf
iio: accel: bma220: split original driver

In preparation for the i2c module, move the original code into multiple
source files without any other functional change.

Create the additional bma220_core module which currently is not
providing an abstracted bus type (this will change with the regmap
patch).
Fix a few includes in the context of this patch.

Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/bma220.h [new file with mode: 0644]
drivers/iio/accel/bma220_core.c [new file with mode: 0644]
drivers/iio/accel/bma220_spi.c