| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | #include <linux/spi/spi.h> |
|---|
| 2 | 3 | #include <linux/regmap.h> |
|---|
| 3 | 4 | #include <linux/iio/iio.h> |
|---|
| .. | .. |
|---|
| 18 | 19 | |
|---|
| 19 | 20 | regmap = devm_regmap_init_spi(spi, &bmg160_regmap_spi_conf); |
|---|
| 20 | 21 | if (IS_ERR(regmap)) { |
|---|
| 21 | | - dev_err(&spi->dev, "Failed to register spi regmap %d\n", |
|---|
| 22 | | - (int)PTR_ERR(regmap)); |
|---|
| 22 | + dev_err(&spi->dev, "Failed to register spi regmap: %pe\n", |
|---|
| 23 | + regmap); |
|---|
| 23 | 24 | return PTR_ERR(regmap); |
|---|
| 24 | 25 | } |
|---|
| 25 | 26 | |
|---|
| .. | .. |
|---|
| 36 | 37 | static const struct spi_device_id bmg160_spi_id[] = { |
|---|
| 37 | 38 | {"bmg160", 0}, |
|---|
| 38 | 39 | {"bmi055_gyro", 0}, |
|---|
| 40 | + {"bmi088_gyro", 0}, |
|---|
| 39 | 41 | {} |
|---|
| 40 | 42 | }; |
|---|
| 41 | 43 | |
|---|