From patchwork Wed Aug 23 19:18:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 9918187 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B806603FA for ; Wed, 23 Aug 2017 19:19:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CCAA28A12 for ; Wed, 23 Aug 2017 19:19:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7187828A16; Wed, 23 Aug 2017 19:19:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAD3828A12 for ; Wed, 23 Aug 2017 19:19:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932565AbdHWTTE (ORCPT ); Wed, 23 Aug 2017 15:19:04 -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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YWSac4WVaxkj0AU0jkIA8oEc8Kkggygbzr106XZ9Rh0=; b=OCnAVG9OsJPNujpeq+Uu30LJ75 SZgfTgL9DNoLLx35k5LhEf80GGEl0BqrioYWmytR+pjJLDqnug6HAINc1VApYEsU+e1WkTN9aS35n VpytTBP7I2HaqP1mHvZLOY4vjEJ9d5OvlZsLkUJ2B3kg9NDtNhJ3SbFM+XTZEoutwdwsnmPXOsokY c6AuHb2CyOrMNV5hgmCq/JY9sBWJdtHEJkbNV/S+nPWCqTwodXOhvh5hdpJQaXYW666omWfUYO9+w RNSACX8eTiefQ9huoKBjTapPh3PTV8dgU3kRWcuZUHJe5bmnJgEuPLxCHwKGb1HGAn8V/zcWHEMvt JnffKfmQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:52266 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1dkb7r-004Ikt-6H; Wed, 23 Aug 2017 15:15:39 -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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; } }