[Openchrome-devel] drm-openchrome: Branch 'drm-next-4.13' - 2 commits - drivers/gpu/drm
Kevin Brace
kevinbrace at kemper.freedesktop.org
Fri Aug 25 08:24:50 UTC 2017
drivers/gpu/drm/openchrome/via_display.c | 15 ++++-----------
drivers/gpu/drm/openchrome/via_fp.c | 3 ---
2 files changed, 4 insertions(+), 14 deletions(-)
New commits:
commit a10c767df8d86c9dfd87648813086a010827ffc4
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Aug 25 01:17:20 2017 -0700
Remove unused variables from via_lcd_set_property()
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/drivers/gpu/drm/openchrome/via_fp.c b/drivers/gpu/drm/openchrome/via_fp.c
index bbb0c3826061..24c3ada5de28 100644
--- a/drivers/gpu/drm/openchrome/via_fp.c
+++ b/drivers/gpu/drm/openchrome/via_fp.c
@@ -801,10 +801,7 @@ static int
via_lcd_set_property(struct drm_connector *connector,
struct drm_property *property, uint64_t value)
{
- struct via_connector *con = container_of(connector, struct via_connector, base);
- struct via_device *dev_priv = connector->dev->dev_private;
struct drm_device *dev = connector->dev;
- struct drm_property *prop;
uint64_t orig;
int ret;
commit 7d164dca57312cc68a0d1ffae57313cb0ef43d91
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Aug 25 01:13:31 2017 -0700
Directly reference drm_encoder_helper_funcs
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/drivers/gpu/drm/openchrome/via_display.c b/drivers/gpu/drm/openchrome/via_display.c
index 37ac7a78b615..49d4bf68be4c 100644
--- a/drivers/gpu/drm/openchrome/via_display.c
+++ b/drivers/gpu/drm/openchrome/via_display.c
@@ -35,7 +35,6 @@ void
via_encoder_commit(struct drm_encoder *encoder)
{
struct via_encoder *enc = container_of(encoder, struct via_encoder, base);
- struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
struct via_device *dev_priv = encoder->dev->dev_private;
struct drm_device *dev = encoder->dev;
struct via_crtc *iga = NULL;
@@ -145,18 +144,17 @@ via_encoder_commit(struct drm_encoder *encoder)
svga_wcrt_mask(VGABASE, 0x91, 0x00, BIT(5));
/* Now turn on the display */
- encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON);
+ encoder->helper_private->dpms(encoder, DRM_MODE_DPMS_ON);
}
void
via_encoder_disable(struct drm_encoder *encoder)
{
- struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
struct via_encoder *enc = container_of(encoder, struct via_encoder, base);
struct via_device *dev_priv = encoder->dev->dev_private;
/* First turn off the display */
- encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
+ encoder->helper_private->dpms(encoder, DRM_MODE_DPMS_OFF);
switch (enc->di_port) {
case VIA_DI_PORT_DVP0:
@@ -245,9 +243,7 @@ via_set_sync_polarity(struct drm_encoder *encoder, struct drm_display_mode *mode
void
via_encoder_prepare(struct drm_encoder *encoder)
{
- struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
-
- encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
+ encoder->helper_private->dpms(encoder, DRM_MODE_DPMS_OFF);
}
struct drm_encoder *
@@ -306,14 +302,11 @@ via_connector_set_property(struct drm_connector *connector,
struct drm_property *property, uint64_t value)
{
struct drm_encoder *encoder = connector->encoder;
- struct drm_encoder_helper_funcs *encoder_funcs;
struct drm_device *dev = connector->dev;
if (encoder) {
- encoder_funcs = encoder->helper_private;
-
if (property == dev->mode_config.dpms_property)
- encoder_funcs->dpms(encoder, (uint32_t)(value & 0xf));
+ encoder->helper_private->dpms(encoder, (uint32_t)(value & 0xf));
}
return 0;
}
More information about the Openchrome-devel
mailing list