Commit ecf8d08f authored by Lee Jones's avatar Lee Jones Committed by Jonathan Cameron

iio: imu: inv_mpu6050: inv_mpu_core: Demote obvious misuse of kerneldoc to standard comment blocks

No attempt has been made to document any of the demoted functions here.

Fixes the following W=1 kernel build warning(s):

 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:444: warning: Function parameter or member 'st' not described in 'inv_mpu6050_set_lpf_regs'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:444: warning: Function parameter or member 'val' not described in 'inv_mpu6050_set_lpf_regs'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:480: warning: Function parameter or member 'indio_dev' not described in 'inv_mpu6050_init_config'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:862: warning: Function parameter or member 'st' not described in 'inv_mpu6050_set_lpf'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:862: warning: Function parameter or member 'rate' not described in 'inv_mpu6050_set_lpf'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:893: warning: Function parameter or member 'dev' not described in 'inv_mpu6050_fifo_rate_store'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:893: warning: Function parameter or member 'attr' not described in 'inv_mpu6050_fifo_rate_store'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:893: warning: Function parameter or member 'buf' not described in 'inv_mpu6050_fifo_rate_store'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:893: warning: Function parameter or member 'count' not described in 'inv_mpu6050_fifo_rate_store'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:954: warning: Function parameter or member 'dev' not described in 'inv_fifo_rate_show'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:954: warning: Function parameter or member 'attr' not described in 'inv_fifo_rate_show'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:954: warning: Function parameter or member 'buf' not described in 'inv_fifo_rate_show'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:975: warning: Function parameter or member 'dev' not described in 'inv_attr_show'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:975: warning: Function parameter or member 'attr' not described in 'inv_attr_show'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:975: warning: Function parameter or member 'buf' not described in 'inv_attr_show'
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:1282: warning: Function parameter or member 'st' not described in 'inv_check_and_setup_chip'

Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 315482a5
...@@ -433,7 +433,7 @@ static int inv_mpu6050_set_gyro_fsr(struct inv_mpu6050_state *st, ...@@ -433,7 +433,7 @@ static int inv_mpu6050_set_gyro_fsr(struct inv_mpu6050_state *st,
return regmap_write(st->map, st->reg->gyro_config, data); return regmap_write(st->map, st->reg->gyro_config, data);
} }
/** /*
* inv_mpu6050_set_lpf_regs() - set low pass filter registers, chip dependent * inv_mpu6050_set_lpf_regs() - set low pass filter registers, chip dependent
* *
* MPU60xx/MPU9150 use only 1 register for accelerometer + gyroscope * MPU60xx/MPU9150 use only 1 register for accelerometer + gyroscope
...@@ -467,7 +467,7 @@ static int inv_mpu6050_set_lpf_regs(struct inv_mpu6050_state *st, ...@@ -467,7 +467,7 @@ static int inv_mpu6050_set_lpf_regs(struct inv_mpu6050_state *st,
return regmap_write(st->map, st->reg->accel_lpf, val); return regmap_write(st->map, st->reg->accel_lpf, val);
} }
/** /*
* inv_mpu6050_init_config() - Initialize hardware, disable FIFO. * inv_mpu6050_init_config() - Initialize hardware, disable FIFO.
* *
* Initial configuration: * Initial configuration:
...@@ -847,7 +847,7 @@ static int inv_mpu6050_write_raw(struct iio_dev *indio_dev, ...@@ -847,7 +847,7 @@ static int inv_mpu6050_write_raw(struct iio_dev *indio_dev,
return result; return result;
} }
/** /*
* inv_mpu6050_set_lpf() - set low pass filer based on fifo rate. * inv_mpu6050_set_lpf() - set low pass filer based on fifo rate.
* *
* Based on the Nyquist principle, the bandwidth of the low * Based on the Nyquist principle, the bandwidth of the low
...@@ -884,7 +884,7 @@ static int inv_mpu6050_set_lpf(struct inv_mpu6050_state *st, int rate) ...@@ -884,7 +884,7 @@ static int inv_mpu6050_set_lpf(struct inv_mpu6050_state *st, int rate)
return 0; return 0;
} }
/** /*
* inv_mpu6050_fifo_rate_store() - Set fifo rate. * inv_mpu6050_fifo_rate_store() - Set fifo rate.
*/ */
static ssize_t static ssize_t
...@@ -945,7 +945,7 @@ inv_mpu6050_fifo_rate_store(struct device *dev, struct device_attribute *attr, ...@@ -945,7 +945,7 @@ inv_mpu6050_fifo_rate_store(struct device *dev, struct device_attribute *attr,
return count; return count;
} }
/** /*
* inv_fifo_rate_show() - Get the current sampling rate. * inv_fifo_rate_show() - Get the current sampling rate.
*/ */
static ssize_t static ssize_t
...@@ -962,7 +962,7 @@ inv_fifo_rate_show(struct device *dev, struct device_attribute *attr, ...@@ -962,7 +962,7 @@ inv_fifo_rate_show(struct device *dev, struct device_attribute *attr,
return scnprintf(buf, PAGE_SIZE, "%u\n", fifo_rate); return scnprintf(buf, PAGE_SIZE, "%u\n", fifo_rate);
} }
/** /*
* inv_attr_show() - calling this function will show current * inv_attr_show() - calling this function will show current
* parameters. * parameters.
* *
...@@ -1275,7 +1275,7 @@ static const struct iio_info mpu_info = { ...@@ -1275,7 +1275,7 @@ static const struct iio_info mpu_info = {
.debugfs_reg_access = &inv_mpu6050_reg_access, .debugfs_reg_access = &inv_mpu6050_reg_access,
}; };
/** /*
* inv_check_and_setup_chip() - check and setup chip. * inv_check_and_setup_chip() - check and setup chip.
*/ */
static int inv_check_and_setup_chip(struct inv_mpu6050_state *st) static int inv_check_and_setup_chip(struct inv_mpu6050_state *st)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment