core.c (7afde8baa83b9ac409a6db86f27a41878aa6b33f) | core.c (33d58949adee5086478e140751e4a7263bd7e207) |
---|---|
1/* 2 * Core driver for the pin control subsystem 3 * 4 * Copyright (C) 2011 ST-Ericsson SA 5 * Written on behalf of Linaro for ST-Ericsson 6 * Based on bits of regulator core, gpio core and clk core 7 * 8 * Author: Linus Walleij <linus.walleij@linaro.org> --- 74 unchanged lines hidden (view full) --- 83 break; 84 } 85 } 86 mutex_unlock(&pinctrldev_list_mutex); 87 88 return found ? pctldev : NULL; 89} 90 | 1/* 2 * Core driver for the pin control subsystem 3 * 4 * Copyright (C) 2011 ST-Ericsson SA 5 * Written on behalf of Linaro for ST-Ericsson 6 * Based on bits of regulator core, gpio core and clk core 7 * 8 * Author: Linus Walleij <linus.walleij@linaro.org> --- 74 unchanged lines hidden (view full) --- 83 break; 84 } 85 } 86 mutex_unlock(&pinctrldev_list_mutex); 87 88 return found ? pctldev : NULL; 89} 90 |
91struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin) | 91struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin) |
92{ 93 struct pin_desc *pindesc; 94 unsigned long flags; 95 96 spin_lock_irqsave(&pctldev->pin_desc_tree_lock, flags); 97 pindesc = radix_tree_lookup(&pctldev->pin_desc_tree, pin); 98 spin_unlock_irqrestore(&pctldev->pin_desc_tree_lock, flags); 99 --- 531 unchanged lines hidden --- | 92{ 93 struct pin_desc *pindesc; 94 unsigned long flags; 95 96 spin_lock_irqsave(&pctldev->pin_desc_tree_lock, flags); 97 pindesc = radix_tree_lookup(&pctldev->pin_desc_tree, pin); 98 spin_unlock_irqrestore(&pctldev->pin_desc_tree_lock, flags); 99 --- 531 unchanged lines hidden --- |