|
|
@@ -28,11 +28,6 @@
|
|
|
|
|
|
#include "bmc150-accel.h"
|
|
|
|
|
|
-static const struct regmap_config bmc150_i2c_regmap_conf = {
|
|
|
- .reg_bits = 8,
|
|
|
- .val_bits = 8,
|
|
|
-};
|
|
|
-
|
|
|
static int bmc150_accel_probe(struct i2c_client *client,
|
|
|
const struct i2c_device_id *id)
|
|
|
{
|
|
|
@@ -43,7 +38,7 @@ static int bmc150_accel_probe(struct i2c_client *client,
|
|
|
i2c_check_functionality(client->adapter,
|
|
|
I2C_FUNC_SMBUS_READ_I2C_BLOCK);
|
|
|
|
|
|
- regmap = devm_regmap_init_i2c(client, &bmc150_i2c_regmap_conf);
|
|
|
+ regmap = devm_regmap_init_i2c(client, &bmc150_regmap_conf);
|
|
|
if (IS_ERR(regmap)) {
|
|
|
dev_err(&client->dev, "Failed to initialize i2c regmap\n");
|
|
|
return PTR_ERR(regmap);
|