diff options
author | Crestez Dan Leonard <leonard.crestez@intel.com> | 2016-04-20 09:15:10 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-04-25 14:40:05 -0400 |
commit | 7bdd3181596d3d95ef39849bc3ef8e5b91cb6ae1 (patch) | |
tree | f5b8482810738cd4058aabbc82349410811c6c3f /drivers/iio | |
parent | aadd3076db9d37a593dca1f16b35a87e0bd59005 (diff) |
iio: inv_mpu6050: Remove inv_mpu6050_hw.num_reg
This field was unused and incorrect for mpu6500.
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 3 | ||||
-rw-r--r-- | drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c index ec0ae6f85945..84d5b6939e6a 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | |||
@@ -91,19 +91,16 @@ static const struct inv_mpu6050_chip_config chip_config_6050 = { | |||
91 | /* Indexed by enum inv_devices */ | 91 | /* Indexed by enum inv_devices */ |
92 | static const struct inv_mpu6050_hw hw_info[] = { | 92 | static const struct inv_mpu6050_hw hw_info[] = { |
93 | { | 93 | { |
94 | .num_reg = 117, | ||
95 | .name = "MPU6050", | 94 | .name = "MPU6050", |
96 | .reg = ®_set_6050, | 95 | .reg = ®_set_6050, |
97 | .config = &chip_config_6050, | 96 | .config = &chip_config_6050, |
98 | }, | 97 | }, |
99 | { | 98 | { |
100 | .num_reg = 117, | ||
101 | .name = "MPU6500", | 99 | .name = "MPU6500", |
102 | .reg = ®_set_6500, | 100 | .reg = ®_set_6500, |
103 | .config = &chip_config_6050, | 101 | .config = &chip_config_6050, |
104 | }, | 102 | }, |
105 | { | 103 | { |
106 | .num_reg = 117, | ||
107 | .name = "MPU6000", | 104 | .name = "MPU6000", |
108 | .reg = ®_set_6050, | 105 | .reg = ®_set_6050, |
109 | .config = &chip_config_6050, | 106 | .config = &chip_config_6050, |
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h index 52d60cdc9f16..26b63993ba00 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | |||
@@ -93,13 +93,11 @@ struct inv_mpu6050_chip_config { | |||
93 | 93 | ||
94 | /** | 94 | /** |
95 | * struct inv_mpu6050_hw - Other important hardware information. | 95 | * struct inv_mpu6050_hw - Other important hardware information. |
96 | * @num_reg: Number of registers on device. | ||
97 | * @name: name of the chip. | 96 | * @name: name of the chip. |
98 | * @reg: register map of the chip. | 97 | * @reg: register map of the chip. |
99 | * @config: configuration of the chip. | 98 | * @config: configuration of the chip. |
100 | */ | 99 | */ |
101 | struct inv_mpu6050_hw { | 100 | struct inv_mpu6050_hw { |
102 | u8 num_reg; | ||
103 | u8 *name; | 101 | u8 *name; |
104 | const struct inv_mpu6050_reg_map *reg; | 102 | const struct inv_mpu6050_reg_map *reg; |
105 | const struct inv_mpu6050_chip_config *config; | 103 | const struct inv_mpu6050_chip_config *config; |