summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2014-05-19 22:42:32 +0200
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:14:37 +0100
commit8d9f39a5e638611fe815e19f04c496c853b68d66 (patch)
treeb2372a3f0c6a8cbc2bece2b11d8c818adf13e501 /include
parent5986e833c4ff54206e1c2667c6b7119dc4b52c92 (diff)
downloadlinux-stable-8d9f39a5e638611fe815e19f04c496c853b68d66.tar.gz
linux-stable-8d9f39a5e638611fe815e19f04c496c853b68d66.tar.bz2
linux-stable-8d9f39a5e638611fe815e19f04c496c853b68d66.zip
pwm: add period and polarity to struct pwm_lookup
Add period and polarity members to struct pwm_lookup so that platforms using the lookup table can be treated the same way as those using the device tree. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com> (cherry picked from commit 3796ce1d4d4b330a75005c5eda105603ce9d4071) Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pwm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index f0feafd184a0..29ca4572629d 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -274,6 +274,8 @@ struct pwm_lookup {
unsigned int index;
const char *dev_id;
const char *con_id;
+ unsigned int period;
+ enum pwm_polarity polarity;
};
#define PWM_LOOKUP(_provider, _index, _dev_id, _con_id) \