[PATCH v2 2/2] iio: gyro: bmg160_i2c: add BMI088 to of_match_table

Jun Yan posted 2 patches 9 months, 4 weeks ago
[PATCH v2 2/2] iio: gyro: bmg160_i2c: add BMI088 to of_match_table
Posted by Jun Yan 9 months, 4 weeks ago
BMI088 is missing from the of_match_table. Let's complete it.

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 drivers/iio/gyro/bmg160_i2c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/gyro/bmg160_i2c.c b/drivers/iio/gyro/bmg160_i2c.c
index 9c5d7e8ee99c..e6caab49f98a 100644
--- a/drivers/iio/gyro/bmg160_i2c.c
+++ b/drivers/iio/gyro/bmg160_i2c.c
@@ -58,6 +58,7 @@ MODULE_DEVICE_TABLE(i2c, bmg160_i2c_id);
 static const struct of_device_id bmg160_of_match[] = {
 	{ .compatible = "bosch,bmg160" },
 	{ .compatible = "bosch,bmi055_gyro" },
+	{ .compatible = "bosch,bmi088_gyro" },
 	{ }
 };
 
-- 
2.48.1
Re: [PATCH v2 2/2] iio: gyro: bmg160_i2c: add BMI088 to of_match_table
Posted by Jonathan Cameron 9 months, 3 weeks ago
On Fri, 21 Feb 2025 00:50:01 +0800
Jun Yan <jerrysteve1101@gmail.com> wrote:

> BMI088 is missing from the of_match_table. Let's complete it.
> 
> Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
Applied this patch. I'll initially push out as testing for 0-day to
see if it can find any problems.

Thanks,

Jonathan
> ---
>  drivers/iio/gyro/bmg160_i2c.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iio/gyro/bmg160_i2c.c b/drivers/iio/gyro/bmg160_i2c.c
> index 9c5d7e8ee99c..e6caab49f98a 100644
> --- a/drivers/iio/gyro/bmg160_i2c.c
> +++ b/drivers/iio/gyro/bmg160_i2c.c
> @@ -58,6 +58,7 @@ MODULE_DEVICE_TABLE(i2c, bmg160_i2c_id);
>  static const struct of_device_id bmg160_of_match[] = {
>  	{ .compatible = "bosch,bmg160" },
>  	{ .compatible = "bosch,bmi055_gyro" },
> +	{ .compatible = "bosch,bmi088_gyro" },
>  	{ }
>  };
>