iio: inv_mpu6050: Remove inv_mpu6050_hw.num_reg
authorCrestez Dan Leonard <leonard.crestez@intel.com>
Wed, 20 Apr 2016 13:15:10 +0000 (16:15 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 25 Apr 2016 18:40:05 +0000 (19:40 +0100)
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>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h

index ec0ae6f85945a1b2ecc0d0a47c0b5fe4f09ea68f..84d5b6939e6adb27f9c5bc3e272121425825ab38 100644 (file)
@@ -91,19 +91,16 @@ static const struct inv_mpu6050_chip_config chip_config_6050 = {
 /* Indexed by enum inv_devices */
 static const struct inv_mpu6050_hw hw_info[] = {
        {
-               .num_reg = 117,
                .name = "MPU6050",
                .reg = &reg_set_6050,
                .config = &chip_config_6050,
        },
        {
-               .num_reg = 117,
                .name = "MPU6500",
                .reg = &reg_set_6500,
                .config = &chip_config_6050,
        },
        {
-               .num_reg = 117,
                .name = "MPU6000",
                .reg = &reg_set_6050,
                .config = &chip_config_6050,
index 52d60cdc9f165e5aab84e66bb6e36433fd534dd5..26b63993ba00c40850560efddc98c0b961dc9868 100644 (file)
@@ -93,13 +93,11 @@ struct inv_mpu6050_chip_config {
 
 /**
  *  struct inv_mpu6050_hw - Other important hardware information.
- *  @num_reg:  Number of registers on device.
  *  @name:      name of the chip.
  *  @reg:   register map of the chip.
  *  @config:    configuration of the chip.
  */
 struct inv_mpu6050_hw {
-       u8 num_reg;
        u8 *name;
        const struct inv_mpu6050_reg_map *reg;
        const struct inv_mpu6050_chip_config *config;