From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932612AbdHWTTF (ORCPT ); Wed, 23 Aug 2017 15:19:05 -0400 Received: from vern.gendns.com ([206.190.152.46]:34052 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932458AbdHWTTD (ORCPT ); Wed, 23 Aug 2017 15:19:03 -0400 From: David Lechner To: linux-fbdev@vger.kernel.org Cc: David Lechner , Bartlomiej Zolnierkiewicz , Geert Uytterhoeven , linux-kernel@vger.kernel.org Subject: [PATCH] fbcon: remove restriction on margin color Date: Wed, 23 Aug 2017 14:18:53 -0500 Message-Id: <1503515933-8045-1-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This removes the restriction on the value range of the fbcon=margin: parameter. The color value really depends on the driver being used. Signed-off-by: David Lechner --- This is a follow up to "fbcon: add fbcon=margin: command line option". https://lkml.org/lkml/2017/8/23/479 Documentation/fb/fbcon.txt | 2 +- drivers/video/console/fbcon.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/fb/fbcon.txt b/Documentation/fb/fbcon.txt index 1822b19..a38d3aa 100644 --- a/Documentation/fb/fbcon.txt +++ b/Documentation/fb/fbcon.txt @@ -153,7 +153,7 @@ C. Boot options This option specifies the color of the margins. The margins are the leftover area at the right and the bottom of the screen that are not used by text. By default, this area will be black. The 'color' value - is 0 to 7 where 0 is black and 7 is white. + is an integer number that depends on the framebuffer driver being used. C. Attaching, Detaching and Unloading diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 1bce7a7..82e5d6b 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -497,8 +497,6 @@ static int __init fb_console_setup(char *this_opt) options += 7; if (*options) margin_color = simple_strtoul(options, &options, 0); - if (margin_color > 7) - margin_color = 0; continue; } } -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Lechner Date: Wed, 23 Aug 2017 19:18:53 +0000 Subject: [PATCH] fbcon: remove restriction on margin color Message-Id: <1503515933-8045-1-git-send-email-david@lechnology.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org Cc: David Lechner , Bartlomiej Zolnierkiewicz , Geert Uytterhoeven , linux-kernel@vger.kernel.org This removes the restriction on the value range of the fbcon=margin: parameter. The color value really depends on the driver being used. Signed-off-by: David Lechner --- This is a follow up to "fbcon: add fbcon=margin: command line option". https://lkml.org/lkml/2017/8/23/479 Documentation/fb/fbcon.txt | 2 +- drivers/video/console/fbcon.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/fb/fbcon.txt b/Documentation/fb/fbcon.txt index 1822b19..a38d3aa 100644 --- a/Documentation/fb/fbcon.txt +++ b/Documentation/fb/fbcon.txt @@ -153,7 +153,7 @@ C. Boot options This option specifies the color of the margins. The margins are the leftover area at the right and the bottom of the screen that are not used by text. By default, this area will be black. The 'color' value - is 0 to 7 where 0 is black and 7 is white. + is an integer number that depends on the framebuffer driver being used. C. Attaching, Detaching and Unloading diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 1bce7a7..82e5d6b 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -497,8 +497,6 @@ static int __init fb_console_setup(char *this_opt) options += 7; if (*options) margin_color = simple_strtoul(options, &options, 0); - if (margin_color > 7) - margin_color = 0; continue; } } -- 2.7.4