diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-06-30 02:19:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-06-30 02:19:13 +0000 |
commit | 71a547d6606a076b6025bbc2af5b27e507ed298c (patch) | |
tree | 7f11b6252380b66dcfe4fc5c512e551d4d18e696 /sys/dev/ic | |
parent | 916745982f7c537dec8cfd05b1f9cd204e975b18 (diff) |
adjust functions for new const in drm MI code; ok jsg
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dwhdmi.h | 12 | ||||
-rw-r--r-- | sys/dev/ic/dwhdmiphy.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ic/dwhdmi.h b/sys/dev/ic/dwhdmi.h index 70558438e0d..4c1810ab5cb 100644 --- a/sys/dev/ic/dwhdmi.h +++ b/sys/dev/ic/dwhdmi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dwhdmi.h,v 1.3 2020/06/08 04:47:58 jsg Exp $ */ +/* $OpenBSD: dwhdmi.h,v 1.4 2020/06/30 02:19:12 deraadt Exp $ */ /* $NetBSD: dw_hdmi.h,v 1.6 2019/12/22 23:23:32 thorpej Exp $ */ /*- @@ -96,10 +96,10 @@ struct dwhdmi_softc { void (*sc_enable)(struct dwhdmi_softc *); void (*sc_disable)(struct dwhdmi_softc *); void (*sc_mode_set)(struct dwhdmi_softc *, - struct drm_display_mode *, - struct drm_display_mode *); + const struct drm_display_mode *, + const struct drm_display_mode *); enum drm_mode_status (*sc_mode_valid)(struct dwhdmi_softc *, - struct drm_display_mode *); + const struct drm_display_mode *); }; #define to_dwhdmi_connector(x) container_of(x, struct dwhdmi_connector, base) @@ -114,7 +114,7 @@ enum drm_connector_status dwhdmi_phy_detect(struct dwhdmi_softc *, int); void dwhdmi_phy_enable(struct dwhdmi_softc *); void dwhdmi_phy_disable(struct dwhdmi_softc *); void dwhdmi_phy_mode_set(struct dwhdmi_softc *, - struct drm_display_mode *, - struct drm_display_mode *); + const struct drm_display_mode *, + const struct drm_display_mode *); #endif /* !_DEV_IC_DWHDMI_H */ diff --git a/sys/dev/ic/dwhdmiphy.c b/sys/dev/ic/dwhdmiphy.c index 4cd2f256f73..60459adc6bc 100644 --- a/sys/dev/ic/dwhdmiphy.c +++ b/sys/dev/ic/dwhdmiphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwhdmiphy.c,v 1.2 2020/06/08 04:47:58 jsg Exp $ */ +/* $OpenBSD: dwhdmiphy.c,v 1.3 2020/06/30 02:19:12 deraadt Exp $ */ /* $NetBSD: dw_hdmi_phy.c,v 1.2 2019/11/10 10:36:01 jmcneill Exp $ */ /*- @@ -263,7 +263,7 @@ dwhdmi_phy_test_clear(struct dwhdmi_softc *sc, unsigned char bit) } int -dwhdmi_phy_configure(struct dwhdmi_softc *sc, struct drm_display_mode *mode) +dwhdmi_phy_configure(struct dwhdmi_softc *sc, const struct drm_display_mode *mode) { const struct dwhdmi_mpll_config *mpll_conf; const struct dwhdmi_phy_config *phy_conf; @@ -352,7 +352,7 @@ dwhdmi_phy_configure(struct dwhdmi_softc *sc, struct drm_display_mode *mode) } void -dwhdmi_phy_init(struct dwhdmi_softc *sc, struct drm_display_mode *mode) +dwhdmi_phy_init(struct dwhdmi_softc *sc, const struct drm_display_mode *mode) { int i; @@ -392,7 +392,7 @@ dwhdmi_phy_disable(struct dwhdmi_softc *sc) void dwhdmi_phy_mode_set(struct dwhdmi_softc *sc, - struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) + const struct drm_display_mode *mode, const struct drm_display_mode *adjusted_mode) { dwhdmi_phy_init(sc, adjusted_mode); } |