Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363009
b: refs/heads/master
c: c16150d
h: refs/heads/master
i:
  363007: 3ef5e26
v: v3
  • Loading branch information
Tomasz Figa authored and Linus Walleij committed Apr 9, 2013
1 parent ce7cf5b commit 9063158
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43fc9e7fab903ea3c525c693c5e9bf566d521380
refs/heads/master: c16150d846585d27e90795447ecc7c055d90f6d5
10 changes: 10 additions & 0 deletions trunk/drivers/pinctrl/pinctrl-samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ static void samsung_pinmux_setup(struct pinctrl_dev *pctldev, unsigned selector,
type = bank->type;
mask = (1 << type->fld_width[PINCFG_TYPE_FUNC]) - 1;
shift = pin_offset * type->fld_width[PINCFG_TYPE_FUNC];
if (shift >= 32) {
/* Some banks have two config registers */
shift -= 32;
reg += 4;
}

spin_lock_irqsave(&bank->slock, flags);

Expand Down Expand Up @@ -356,6 +361,11 @@ static int samsung_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev,

mask = (1 << type->fld_width[PINCFG_TYPE_FUNC]) - 1;
shift = pin_offset * type->fld_width[PINCFG_TYPE_FUNC];
if (shift >= 32) {
/* Some banks have two config registers */
shift -= 32;
reg += 4;
}

spin_lock_irqsave(&bank->slock, flags);

Expand Down

0 comments on commit 9063158

Please sign in to comment.