[PATCH 8/8] PWM: core: constify chip->ops pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There's no reason,users of the member would want to change the
pointee. Make it const.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/pwm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/pwm.h b/include/pwm.h
index 911c760839fa..3dce2859136c 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;
 };
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux