power: supply: cpcap-battery: Fix kerneldoc of cpcap_battery_read_accumulated()
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 29 Jul 2020 07:43:47 +0000 (09:43 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 29 Jul 2020 16:56:51 +0000 (18:56 +0200)
Fix W=1 compile warnings (invalid kerneldoc):

    drivers/power/supply/cpcap-battery.c:292: warning: Function parameter or member 'ccd' not described in 'cpcap_battery_read_accumulated'
    drivers/power/supply/cpcap-battery.c:292: warning: Excess function parameter 'regs' description in 'cpcap_battery_read_accumulated'

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-battery.c

index 6e9392901b0a27c084dcbb6deb5e10be45766fc5..90eba364664b85fb854d3445a70c664499d3b86d 100644 (file)
@@ -274,7 +274,7 @@ static int cpcap_battery_cc_to_ua(struct cpcap_battery_ddata *ddata,
 /**
  * cpcap_battery_read_accumulated - reads cpcap coulomb counter
  * @ddata: device driver data
- * @regs: coulomb counter values
+ * @ccd: coulomb counter values
  *
  * Based on Motorola mapphone kernel function data_read_regs().
  * Looking at the registers, the coulomb counter seems similar to