summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-02-06 12:23:34 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-10 09:16:15 +0100
commit122b607841b1db922fb272bcdffcc28c225e88d0 (patch)
tree18f1d0697c68d2000b7644930d4ce40f5dedc0ed /include
parent769eb5e7bbb21199611cec2519a47447375cc57a (diff)
downloadbarebox-122b607841b1db922fb272bcdffcc28c225e88d0.tar.gz
barebox-122b607841b1db922fb272bcdffcc28c225e88d0.tar.xz
PWM: core: constify chip->ops pointer
There's no reason,users of the member would want to change the pointee. Make it const. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/pwm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pwm.h b/include/pwm.h
index 911c760839..3dce285913 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -66,7 +66,7 @@ struct pwm_ops {
struct pwm_chip {
int id;
const char *devname;
- struct pwm_ops *ops;
+ const struct pwm_ops *ops;
int duty_ns;
int period_ns;
};