Skip to content

Commit

Permalink
pwm: Export pwm_{set,get}_chip_data()
Browse files Browse the repository at this point in the history
When building a driver as a module, these functions need to be exported
for linking to succeed.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
  • Loading branch information
Thierry Reding committed Jan 30, 2013
1 parent b133d2a commit 928c447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pwm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ int pwm_set_chip_data(struct pwm_device *pwm, void *data)

return 0;
}
EXPORT_SYMBOL_GPL(pwm_set_chip_data);

/**
* pwm_get_chip_data() - get private chip data for a PWM
Expand All @@ -220,6 +221,7 @@ void *pwm_get_chip_data(struct pwm_device *pwm)
{
return pwm ? pwm->chip_data : NULL;
}
EXPORT_SYMBOL_GPL(pwm_get_chip_data);

/**
* pwmchip_add() - register a new PWM chip
Expand Down

0 comments on commit 928c447

Please sign in to comment.