Skip to content

Commit ffc7277

Browse files
Wolfram Sangbroonie
authored andcommitted
regmap: Annotate that MMIO implies fast IO
Document that using the MMIO helpers will automatically enable the 'fast_io' parameter. This makes the used locking scheme more transparent and avoids superfluous setting of this parameter in drivers. Signed-off-by: Wolfram Sang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9f711c9 commit ffc7277

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/regmap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ int regmap_attach_dev(struct device *dev, struct regmap *map,
913913
* @config: Configuration for register map
914914
*
915915
* The return value will be an ERR_PTR() on error or a valid pointer to
916-
* a struct regmap.
916+
* a struct regmap. Implies 'fast_io'.
917917
*/
918918
#define regmap_init_mmio_clk(dev, clk_id, regs, config) \
919919
__regmap_lockdep_wrapper(__regmap_init_mmio_clk, #config, \
@@ -927,7 +927,7 @@ int regmap_attach_dev(struct device *dev, struct regmap *map,
927927
* @config: Configuration for register map
928928
*
929929
* The return value will be an ERR_PTR() on error or a valid pointer to
930-
* a struct regmap.
930+
* a struct regmap. Implies 'fast_io'.
931931
*/
932932
#define regmap_init_mmio(dev, regs, config) \
933933
regmap_init_mmio_clk(dev, NULL, regs, config)
@@ -1138,7 +1138,7 @@ bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg);
11381138
*
11391139
* The return value will be an ERR_PTR() on error or a valid pointer
11401140
* to a struct regmap. The regmap will be automatically freed by the
1141-
* device management code.
1141+
* device management code. Implies 'fast_io'.
11421142
*/
11431143
#define devm_regmap_init_mmio_clk(dev, clk_id, regs, config) \
11441144
__regmap_lockdep_wrapper(__devm_regmap_init_mmio_clk, #config, \
@@ -1153,7 +1153,7 @@ bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg);
11531153
*
11541154
* The return value will be an ERR_PTR() on error or a valid pointer
11551155
* to a struct regmap. The regmap will be automatically freed by the
1156-
* device management code.
1156+
* device management code. Implies 'fast_io'.
11571157
*/
11581158
#define devm_regmap_init_mmio(dev, regs, config) \
11591159
devm_regmap_init_mmio_clk(dev, NULL, regs, config)

0 commit comments

Comments
 (0)