Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3475334imw; Mon, 11 Jul 2022 09:17:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tI0N8dtVk6IpRlh93bmauCOsWusTLXKYYw3QQitHeBuIlkpniI9oyDkeTHYhwp14+4WyNg X-Received: by 2002:a17:90b:1004:b0:1ef:9f33:2df4 with SMTP id gm4-20020a17090b100400b001ef9f332df4mr18911737pjb.31.1657556276759; Mon, 11 Jul 2022 09:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657556276; cv=none; d=google.com; s=arc-20160816; b=itESFL5hlKT0q1JP4YMfoWxXZVw8Do9Hya/lalX8xHX208+cWPhCiud5h6X4+2lUol +yU4yV9atgXFmdWsy26ZtfK+G446XCHOefhNM6hmMQxxAZDuEEPd8roc/qkZ8s7H++do U3D20f+hNK9eOsv8SO5py3of4x77t1dCqBu6i8cgLSc+1B3P6zT6lcsMOeSKm6jCOSeS FpU3161O+iYvwiRpypKldRulnQtqImwyOiEDYKdrEkqBdHTivj6CQLW1WkqdQkydenVR TlIgeAZUbF1+kkak/W9OItSErXjrnTEpv4mzxlIItl3YM9FuUsEQsTPqdEckD2sLZYYo uzBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WK3uGuOSRspfM/3oQdRc4Rj58jxAXONyILEH+hsGTrk=; b=jI4qAjS4ADzH1egsAU5akk0TrOhPKBa88/I8PNkF6wLhYRXR3XHHvKqW/stLrWaLqJ HO1mELm3XQB/cZ66RWG/phDb8ZnWMcVcauDQCBQ2gUlO7iDZULIHV8OuQtZP/BpTVwRk R78xk2t1ul/DYWlq+2cx5mWrJnWX1N8WqHPoZgaSJDfe0C0BaxfkWIxVSFA7GbqSRPcU Cusfl4L3ek8VJyKp1PS7XcEzx4+kS6lXTw68WJ1+xjzh0qVTc3dlJryNZRpboy++MV+D Sf7W6Prq0DTmSu/pNh62/U8yK4e9gjvaYm+jZW/V0fTGD48u2MHecDftv2RENd8l8mgG +pew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb4-20020a170903258400b0016bdf2220ddsi9029891plb.272.2022.07.11.09.17.45; Mon, 11 Jul 2022 09:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229624AbiGKPun (ORCPT + 99 others); Mon, 11 Jul 2022 11:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiGKPul (ORCPT ); Mon, 11 Jul 2022 11:50:41 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FCB95A467 for ; Mon, 11 Jul 2022 08:50:39 -0700 (PDT) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id trqd2700e4C55Sk01rqd4B; Mon, 11 Jul 2022 17:50:38 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1oAvgD-0036wz-AP; Mon, 11 Jul 2022 17:50:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1oAvgC-006shN-T7; Mon, 11 Jul 2022 17:50:36 +0200 From: Geert Uytterhoeven To: Helge Deller Cc: Michael Schmitz , Jonathan Corbet , linux-fbdev@vger.kernel.org, linux-doc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 03/10] video: fbdev: atari: Fix inverse handling Date: Mon, 11 Jul 2022 17:50:27 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the "inverse" option does not do anything, as it just sets a flag, which is further unused. Fix this by calling fb_invert_cmaps() instead, like other drivers do. As this only affects the console colormap, this does not affect X. Update the documentation to match the actual behavior. Signed-off-by: Geert Uytterhoeven --- Documentation/m68k/kernel-options.rst | 4 ++-- drivers/video/fbdev/atafb.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Documentation/m68k/kernel-options.rst b/Documentation/m68k/kernel-options.rst index cabd9419740d5ada..2008a20b43295bd5 100644 --- a/Documentation/m68k/kernel-options.rst +++ b/Documentation/m68k/kernel-options.rst @@ -367,8 +367,8 @@ activated by a "external:" sub-option. 4.1.2) inverse -------------- -Invert the display. This affects both, text (consoles) and graphics -(X) display. Usually, the background is chosen to be black. With this +Invert the display. This affects only text consoles. +Usually, the background is chosen to be black. With this option, you can make the background white. 4.1.3) font diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c index 172ef547ff6f4883..39c3b860a797d4bc 100644 --- a/drivers/video/fbdev/atafb.c +++ b/drivers/video/fbdev/atafb.c @@ -236,8 +236,6 @@ static int *MV300_reg = MV300_reg_8bit; #endif /* ATAFB_EXT */ -static int inverse; - /* * struct fb_ops { * * open/release and usage marking @@ -2971,7 +2969,7 @@ static int __init atafb_setup(char *options) default_par = temp; mode_option = this_opt; } else if (!strcmp(this_opt, "inverse")) - inverse = 1; + fb_invert_cmaps(); else if (!strncmp(this_opt, "hwscroll_", 9)) { hwscroll = simple_strtoul(this_opt + 9, NULL, 10); if (hwscroll < 0) -- 2.25.1