Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313765
b: refs/heads/master
c: 72c7afa
h: refs/heads/master
i:
  313763: 026df9f
v: v3
  • Loading branch information
Paul Mundt committed Jul 10, 2012
1 parent b8726a6 commit 1e9b057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a18d7f9660a9037c4b9c41590220e6bb77768a5e
refs/heads/master: 72c7afa10f272710028f244da65d35e571144085
4 changes: 3 additions & 1 deletion trunk/include/linux/sh_pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef __SH_PFC_H
#define __SH_PFC_H

#include <linux/stringify.h>
#include <asm-generic/gpio.h>

typedef unsigned short pinmux_enum_t;
Expand All @@ -37,10 +38,11 @@ enum {
struct pinmux_gpio {
pinmux_enum_t enum_id;
pinmux_flag_t flags;
const char *name;
};

#define PINMUX_GPIO(gpio, data_or_mark) \
[gpio] = { .enum_id = data_or_mark, .flags = PINMUX_TYPE_NONE }
[gpio] = { .name = __stringify(gpio), .enum_id = data_or_mark, .flags = PINMUX_TYPE_NONE }

#define PINMUX_DATA(data_or_mark, ids...) data_or_mark, ids, 0

Expand Down

0 comments on commit 1e9b057

Please sign in to comment.