aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorShobhit Kumar <[email protected]>2015-05-05 15:04:18 +0530
committerThierry Reding <[email protected]>2015-05-06 14:19:35 +0200
commitefb0de55b6a2ec15fc424e660601f22ae2fa487a (patch)
tree0ba5c7c3ef4b77c8fe9755ab371fa6302e2ceb0d /include/linux
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
pwm: Add support to remove registered consumer lookup tables
In case some drivers are unloading, they can remove lookup tables which they had registered during their load time to avoid redundant entries if loaded again. CC: Samuel Ortiz <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Alexandre Courbot <[email protected]> Cc: Thierry Reding <[email protected]> Signed-off-by: Shobhit Kumar <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pwm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index e90628cac8fa..cfe2d8df5be0 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -290,10 +290,15 @@ struct pwm_lookup {
#if IS_ENABLED(CONFIG_PWM)
void pwm_add_table(struct pwm_lookup *table, size_t num);
+void pwm_remove_table(struct pwm_lookup *table, size_t num);
#else
static inline void pwm_add_table(struct pwm_lookup *table, size_t num)
{
}
+
+static inline void pwm_remove_table(struct pwm_lookup *table, size_t num)
+{
+}
#endif
#ifdef CONFIG_PWM_SYSFS