summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/core.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-01-30 09:22:24 +0100
committerThierry Reding <thierry.reding@avionic-design.de>2013-01-30 09:22:24 +0100
commit928c44775bbf312332c5cb8df7c7451c1d8fba25 (patch)
tree06ff7e8ac074d23272d892b38c058d29c93b16bf /drivers/pwm/core.c
parentb133d2a1370c9b8c9d4b64eaa07e17c86f51b004 (diff)
downloadlinux-928c44775bbf312332c5cb8df7c7451c1d8fba25.tar.gz
linux-928c44775bbf312332c5cb8df7c7451c1d8fba25.tar.bz2
linux-928c44775bbf312332c5cb8df7c7451c1d8fba25.zip
pwm: Export pwm_{set,get}_chip_data()
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>
Diffstat (limited to 'drivers/pwm/core.c')
-rw-r--r--drivers/pwm/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index ffbef95e88dc..7d6081879c13 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -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
@@ -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