From patchwork Sat Mar 12 21:22:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Tobias Schandinat X-Patchwork-Id: 630341 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2CL8LrI001810 for ; Sat, 12 Mar 2011 21:08:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755804Ab1CLVIQ (ORCPT ); Sat, 12 Mar 2011 16:08:16 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:44514 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755688Ab1CLVHs (ORCPT ); Sat, 12 Mar 2011 16:07:48 -0500 Received: (qmail invoked by alias); 12 Mar 2011 21:07:46 -0000 Received: from dslb-088-066-138-222.pools.arcor-ip.net (EHLO localhost.localdomain) [88.66.138.222] by mail.gmx.net (mp003) with SMTP; 12 Mar 2011 22:07:46 +0100 X-Authenticated: #10250065 X-Provags-ID: V01U2FsdGVkX1+qQ803afKqF8a140RZiRacuYFGFz/69ScvDJaJC0 9YRu0Mc97YBQDu From: Florian Tobias Schandinat To: linux-fbdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Florian Tobias Schandinat Subject: [PATCH 3/4] viafb: strip some structures Date: Sat, 12 Mar 2011 21:22:58 +0000 Message-Id: <1299964979-3391-4-git-send-email-FlorianSchandinat@gmx.de> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: <1299964979-3391-1-git-send-email-FlorianSchandinat@gmx.de> References: <1299964979-3391-1-git-send-email-FlorianSchandinat@gmx.de> X-Y-GMX-Trusted: 0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 12 Mar 2011 21:08:22 +0000 (UTC) diff --git a/drivers/video/via/chip.h b/drivers/video/via/chip.h index 3e8aacd..781f3aa 100644 --- a/drivers/video/via/chip.h +++ b/drivers/video/via/chip.h @@ -139,9 +139,6 @@ struct chip_information { struct crt_setting_information { int iga_path; - int h_active; - int v_active; - int bpp; int refresh_rate; }; @@ -159,7 +156,6 @@ struct lvds_setting_information { int h_active; int v_active; int bpp; - int refresh_rate; int lcd_panel_hres; int lcd_panel_vres; int display_method; diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index 9ecf486..b0b0278 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c @@ -2117,9 +2117,6 @@ void viafb_update_device_setting(int hres, int vres, int bpp, int vmode_refresh, int flag) { if (flag == 0) { - viaparinfo->crt_setting_info->h_active = hres; - viaparinfo->crt_setting_info->v_active = vres; - viaparinfo->crt_setting_info->bpp = bpp; viaparinfo->crt_setting_info->refresh_rate = vmode_refresh; @@ -2129,13 +2126,9 @@ void viafb_update_device_setting(int hres, int vres, viaparinfo->lvds_setting_info->h_active = hres; viaparinfo->lvds_setting_info->v_active = vres; viaparinfo->lvds_setting_info->bpp = bpp; - viaparinfo->lvds_setting_info->refresh_rate = - vmode_refresh; viaparinfo->lvds_setting_info2->h_active = hres; viaparinfo->lvds_setting_info2->v_active = vres; viaparinfo->lvds_setting_info2->bpp = bpp; - viaparinfo->lvds_setting_info2->refresh_rate = - vmode_refresh; } else { if (viaparinfo->tmds_setting_info->iga_path == IGA2) { @@ -2147,15 +2140,11 @@ void viafb_update_device_setting(int hres, int vres, viaparinfo->lvds_setting_info->h_active = hres; viaparinfo->lvds_setting_info->v_active = vres; viaparinfo->lvds_setting_info->bpp = bpp; - viaparinfo->lvds_setting_info->refresh_rate = - vmode_refresh; } if (IGA2 == viaparinfo->lvds_setting_info2->iga_path) { viaparinfo->lvds_setting_info2->h_active = hres; viaparinfo->lvds_setting_info2->v_active = vres; viaparinfo->lvds_setting_info2->bpp = bpp; - viaparinfo->lvds_setting_info2->refresh_rate = - vmode_refresh; } } }