Skip to content

Commit 212bc1c

Browse files
Aidan MacDonaldbroonie
authored andcommitted
regmap-irq: Fix typo in documentation for .get_irq_reg()
It refers to a non-existent "num_type_settings" value, which is an old name I'd used during development of config registers and later dropped because it wasn't very clear. The correct bound for the range is num_config_regs, which can be verified by checking the implementation. Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com Link: https://lore.kernel.org/r/20230509110100.3980123-2-aidanmacdonald.0x0@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org
1 parent 69da5aa commit 212bc1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/regmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ struct regmap_irq_chip_data;
16061606
* addresses. The base register will be one of @status_base,
16071607
* @mask_base, etc., @main_status, or any of @config_base.
16081608
* The index will be in the range [0, num_main_regs[ for the
1609-
* main status base, [0, num_type_settings[ for any config
1609+
* main status base, [0, num_config_regs[ for any config
16101610
* register base, and [0, num_regs[ for any other base.
16111611
* If unspecified then regmap_irq_get_irq_reg_linear() is used.
16121612
* @irq_drv_data: Driver specific IRQ data which is passed as parameter when

0 commit comments

Comments
 (0)