Skip to content

Commit

Permalink
mtd: map: fix .set_vpp() documentation
Browse files Browse the repository at this point in the history
As of commit 876fe76
"mtd: maps: physmap: Add reference counter to set_vpp()"
the comment in the header file is incorrect and misleading.
Fix it up.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Paul Parsons <lost.distance@yahoo.com>
Fixes: 876fe76 ("mtd: maps: physmap: Add reference counter to set_vpp()")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Linus Walleij authored and Brian Norris committed Feb 12, 2016
1 parent 4110fdd commit 95a001f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/linux/mtd/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,11 @@ struct map_info {
If there is no cache to care about this can be set to NULL. */
void (*inval_cache)(struct map_info *, unsigned long, ssize_t);

/* set_vpp() must handle being reentered -- enable, enable, disable
must leave it enabled. */
/* This will be called with 1 as parameter when the first map user
* needs VPP, and called with 0 when the last user exits. The map
* core maintains a reference counter, and assumes that VPP is a
* global resource applying to all mapped flash chips on the system.
*/
void (*set_vpp)(struct map_info *, int);

unsigned long pfow_base;
Expand Down

0 comments on commit 95a001f

Please sign in to comment.