Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: gpio-pmic-eic-sprd: Fix incorrectly named property 'map'

A good attempt has been made to properly document 'struct
sprd_pmic_eic', but 'map' has been incorrectly described as
'regmap' since the driver's inception in 2018.

Fixes the following W=1 kernel build warning:

drivers/gpio/gpio-pmic-eic-sprd.c:65: warning: Function parameter or member 'map' not described in 'sprd_pmic_eic'

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Link: https://lore.kernel.org/r/20200630133345.2232932-5-lee.jones@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Lee Jones and committed by
Linus Walleij
3cd7f770 670647d7

+1 -1
+1 -1
drivers/gpio/gpio-pmic-eic-sprd.c
··· 48 48 * struct sprd_pmic_eic - PMIC EIC controller 49 49 * @chip: the gpio_chip structure. 50 50 * @intc: the irq_chip structure. 51 - * @regmap: the regmap from the parent device. 51 + * @map: the regmap from the parent device. 52 52 * @offset: the EIC controller's offset address of the PMIC. 53 53 * @reg: the array to cache the EIC registers. 54 54 * @buslock: for bus lock/sync and unlock.