From 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 13 May 2024 10:30:14 +0000 Subject: [PATCH] modify sin led gpio --- kernel/drivers/iio/imu/bmi160/bmi160_i2c.c | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/kernel/drivers/iio/imu/bmi160/bmi160_i2c.c b/kernel/drivers/iio/imu/bmi160/bmi160_i2c.c index 155a31f..2639861 100644 --- a/kernel/drivers/iio/imu/bmi160/bmi160_i2c.c +++ b/kernel/drivers/iio/imu/bmi160/bmi160_i2c.c @@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * BMI160 - Bosch IMU, I2C bits * * Copyright (c) 2016, Intel Corporation. - * - * This file is subject to the terms and conditions of version 2 of - * the GNU General Public License. See the file COPYING in the main - * directory of this archive for more details. * * 7-bit I2C slave address is: * - 0x68 if SDO is pulled to GND @@ -27,8 +24,8 @@ regmap = devm_regmap_init_i2c(client, &bmi160_regmap_config); if (IS_ERR(regmap)) { - dev_err(&client->dev, "Failed to register i2c regmap %d\n", - (int)PTR_ERR(regmap)); + dev_err(&client->dev, "Failed to register i2c regmap: %pe\n", + regmap); return PTR_ERR(regmap); } @@ -36,13 +33,6 @@ name = id->name; return bmi160_core_probe(&client->dev, regmap, name, false); -} - -static int bmi160_i2c_remove(struct i2c_client *client) -{ - bmi160_core_remove(&client->dev); - - return 0; } static const struct i2c_device_id bmi160_i2c_id[] = { @@ -72,7 +62,6 @@ .of_match_table = of_match_ptr(bmi160_of_match), }, .probe = bmi160_i2c_probe, - .remove = bmi160_i2c_remove, .id_table = bmi160_i2c_id, }; module_i2c_driver(bmi160_i2c_driver); -- Gitblit v1.6.2