Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267025
b: refs/heads/master
c: 9af1e44
h: refs/heads/master
i:
  267023: 47a0681
v: v3
  • Loading branch information
Stephen Warren authored and Linus Walleij committed Oct 20, 2011
1 parent d495a46 commit 9039b51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: 25aec320d993950474a065b59585e8dd006c3e18
refs/heads/master: 9af1e44fb4a4c62a90bff9b095eb001764d91b65
5 changes: 2 additions & 3 deletions trunk/drivers/pinctrl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ static int pinctrl_register_one_pin(struct pinctrl_dev *pctldev,
/* Set owner */
pindesc->pctldev = pctldev;

/* Copy optional basic pin info */
if (name)
strlcpy(pindesc->name, name, sizeof(pindesc->name));
/* Copy basic pin info */
pindesc->name = name;

spin_lock(&pctldev->pin_desc_tree_lock);
radix_tree_insert(&pctldev->pin_desc_tree, number, pindesc);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/pinctrl/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct pinctrl_dev {
*/
struct pin_desc {
struct pinctrl_dev *pctldev;
char name[16];
const char *name;
spinlock_t lock;
/* These fields only added when supporting pinmux drivers */
#ifdef CONFIG_PINMUX
Expand Down

0 comments on commit 9039b51

Please sign in to comment.