Skip to content

Commit

Permalink
sh-pfc: Make struct pinmux_gpio enum_id field const
Browse files Browse the repository at this point in the history
This ensures that the field is not modified, which is a prerequisite for
the rest of the PFC refactoring work.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Laurent Pinchart committed Mar 15, 2013
1 parent 380c2ed commit 051fae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/sh-pfc/sh_pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum {
#define PINMUX_FLAG_DREG (0x3f << PINMUX_FLAG_DREG_SHIFT)

struct pinmux_gpio {
pinmux_enum_t enum_id;
const pinmux_enum_t enum_id;
pinmux_flag_t flags;
const char *name;
};
Expand Down

0 comments on commit 051fae4

Please sign in to comment.