drivers: inv_mpu: remove no use debug
authorZorro Liu <lyx@rock-chips.com>
Tue, 16 May 2017 08:47:45 +0000 (16:47 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 May 2017 10:34:02 +0000 (18:34 +0800)
Change-Id: Ife1fae1323e2ed262a2f7063e5bb313cb304033f
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
drivers/staging/iio/imu/inv_mpu/inv_mpu_i2c.c

index 7eb95c133fdf26faa4791b16563a41ffc759ff1e..5c32bd2489d7a6225e316af1cfe2cc5940ccf639 100644 (file)
@@ -78,6 +78,7 @@ static int inv_i2c_read_base(struct inv_mpu_iio_s *st, u16 i2c_addr,
 
        INV_I2C_INC_MPUWRITE(3);
        INV_I2C_INC_MPUREAD(length);
+#if 0
        {
                char *read = 0;
                pr_debug("%s RD%02X%02X%02X -> %s%s\n", st->hw->name,
@@ -85,6 +86,7 @@ static int inv_i2c_read_base(struct inv_mpu_iio_s *st, u16 i2c_addr,
                         wr_pr_debug_begin(data, length, read),
                         wr_pr_debug_end(read));
        }
+#endif
        return res;
 }
 
@@ -208,7 +210,7 @@ static int mpu_i2c_memory_write(struct inv_mpu_iio_s *st, u8 mpu_addr, u16 mem_a
                        res = -EIO;
                return res;
        }
-
+#if 0
        {
                char *write = 0;
                pr_debug("%s WM%02X%02X%02X%s%s - %d\n", st->hw->name,
@@ -217,6 +219,7 @@ static int mpu_i2c_memory_write(struct inv_mpu_iio_s *st, u8 mpu_addr, u16 mem_a
                         wr_pr_debug_end(write),
                         len);
        }
+#endif
        return 0;
 }
 
@@ -293,6 +296,7 @@ static int mpu_i2c_memory_read(struct inv_mpu_iio_s *st, u8 mpu_addr, u16 mem_ad
                        res = -EIO;
                return res;
        }
+#if 0
        {
                char *read = 0;
                pr_debug("%s RM%02X%02X%02X%02X - %s%s\n", st->hw->name,
@@ -300,7 +304,7 @@ static int mpu_i2c_memory_read(struct inv_mpu_iio_s *st, u8 mpu_addr, u16 mem_ad
                         wr_pr_debug_begin(data, len, read),
                         wr_pr_debug_end(read));
        }
-
+#endif
        return 0;
 }