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: bmi270_i2c: Add MODULE_DEVICE_TABLE for BMI260/270

Currently BMI260 & BMI270 devices do not automatically load this
driver. To fix this, add missing MODULE_DEVICE_TABLE for the i2c,
acpi, and of device tables so the driver will load when the hardware
is detected.

Tested on my OneXPlayer F1 Pro.

Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Derek J. Clark and committed by
Jonathan Cameron
f69b5ac6 c84cde33

+3
+3
drivers/iio/imu/bmi270/bmi270_i2c.c
··· 37 37 { "bmi270", (kernel_ulong_t)&bmi270_chip_info }, 38 38 { } 39 39 }; 40 + MODULE_DEVICE_TABLE(i2c, bmi270_i2c_id); 40 41 41 42 static const struct acpi_device_id bmi270_acpi_match[] = { 42 43 /* GPD Win Mini, Aya Neo AIR Pro, OXP Mini Pro, etc. */ ··· 46 45 { "BMI0260", (kernel_ulong_t)&bmi260_chip_info }, 47 46 { } 48 47 }; 48 + MODULE_DEVICE_TABLE(acpi, bmi270_acpi_match); 49 49 50 50 static const struct of_device_id bmi270_of_match[] = { 51 51 { .compatible = "bosch,bmi260", .data = &bmi260_chip_info }, 52 52 { .compatible = "bosch,bmi270", .data = &bmi270_chip_info }, 53 53 { } 54 54 }; 55 + MODULE_DEVICE_TABLE(of, bmi270_of_match); 55 56 56 57 static struct i2c_driver bmi270_i2c_driver = { 57 58 .driver = {