From 122b607841b1db922fb272bcdffcc28c225e88d0 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 6 Feb 2020 12:23:34 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- include/pwm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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; }; -- cgit v1.2.3