summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-06-30 02:19:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-06-30 02:19:13 +0000
commit71a547d6606a076b6025bbc2af5b27e507ed298c (patch)
tree7f11b6252380b66dcfe4fc5c512e551d4d18e696 /sys/dev
parent916745982f7c537dec8cfd05b1f9cd204e975b18 (diff)
adjust functions for new const in drm MI code; ok jsg
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/rkdwhdmi.c12
-rw-r--r--sys/dev/ic/dwhdmi.h12
-rw-r--r--sys/dev/ic/dwhdmiphy.c8
3 files changed, 16 insertions, 16 deletions
diff --git a/sys/dev/fdt/rkdwhdmi.c b/sys/dev/fdt/rkdwhdmi.c
index a2326657950..7d5fe9e4c63 100644
--- a/sys/dev/fdt/rkdwhdmi.c
+++ b/sys/dev/fdt/rkdwhdmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rkdwhdmi.c,v 1.4 2020/06/08 04:47:58 jsg Exp $ */
+/* $OpenBSD: rkdwhdmi.c,v 1.5 2020/06/30 02:19:11 deraadt Exp $ */
/* $NetBSD: rk_dwhdmi.c,v 1.4 2019/12/17 18:26:36 jakllsch Exp $ */
/*-
@@ -95,10 +95,10 @@ int rkdwhdmi_ep_activate(void *, struct endpoint *, void *);
void *rkdwhdmi_ep_get_cookie(void *, struct endpoint *);
void rkdwhdmi_enable(struct dwhdmi_softc *);
-void rkdwhdmi_mode_set(struct dwhdmi_softc *, struct drm_display_mode *,
- struct drm_display_mode *);
+void rkdwhdmi_mode_set(struct dwhdmi_softc *, const struct drm_display_mode *,
+ const struct drm_display_mode *);
enum drm_mode_status rkdwhdmi_mode_valid(struct dwhdmi_softc *,
- struct drm_display_mode *);
+ const struct drm_display_mode *);
struct cfattach rkdwhdmi_ca = {
sizeof (struct rkdwhdmi_softc), rkdwhdmi_match, rkdwhdmi_attach
@@ -266,7 +266,7 @@ rkdwhdmi_enable(struct dwhdmi_softc *dsc)
void
rkdwhdmi_mode_set(struct dwhdmi_softc *dsc,
- struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
+ const struct drm_display_mode *mode, const struct drm_display_mode *adjusted_mode)
{
struct rkdwhdmi_softc *sc = to_rkdwhdmi_softc(dsc);
int error;
@@ -284,7 +284,7 @@ rkdwhdmi_mode_set(struct dwhdmi_softc *dsc,
}
enum drm_mode_status
-rkdwhdmi_mode_valid(struct dwhdmi_softc *dsc, struct drm_display_mode *mode)
+rkdwhdmi_mode_valid(struct dwhdmi_softc *dsc, const struct drm_display_mode *mode)
{
struct rkdwhdmi_softc *sc = to_rkdwhdmi_softc(dsc);
int i;
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);
}