mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
pinctrl-bcm2835: Fix return type of bcm2835_pmx_free
This commit is contained in:
@@ -831,13 +831,14 @@ static const struct pinctrl_ops bcm2835_pctl_ops = {
|
|||||||
.dt_free_map = bcm2835_pctl_dt_free_map,
|
.dt_free_map = bcm2835_pctl_dt_free_map,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void bcm2835_pmx_free(struct pinctrl_dev *pctldev,
|
static int bcm2835_pmx_free(struct pinctrl_dev *pctldev,
|
||||||
unsigned offset)
|
unsigned offset)
|
||||||
{
|
{
|
||||||
struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev);
|
||||||
|
|
||||||
/* disable by setting to GPIO_IN */
|
/* disable by setting to GPIO_IN */
|
||||||
bcm2835_pinctrl_fsel_set(pc, offset, BCM2835_FSEL_GPIO_IN);
|
bcm2835_pinctrl_fsel_set(pc, offset, BCM2835_FSEL_GPIO_IN);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int bcm2835_pmx_get_functions_count(struct pinctrl_dev *pctldev)
|
static int bcm2835_pmx_get_functions_count(struct pinctrl_dev *pctldev)
|
||||||
|
|||||||
Reference in New Issue
Block a user