From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D83CC433DF for ; Wed, 1 Jul 2020 15:12:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EA14206C3 for ; Wed, 1 Jul 2020 15:12:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731788AbgGAPMV (ORCPT ); Wed, 1 Jul 2020 11:12:21 -0400 Received: from mailout2n.rrzn.uni-hannover.de ([130.75.2.113]:36994 "EHLO mailout2n.rrzn.uni-hannover.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730883AbgGAPMU (ORCPT ); Wed, 1 Jul 2020 11:12:20 -0400 Received: from ytterbium.maphy.uni-hannover.de (ytterbium.maphy.uni-hannover.de [130.75.75.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout2n.rrzn.uni-hannover.de (Postfix) with ESMTPSA id 944321F3FC; Wed, 1 Jul 2020 17:12:17 +0200 (CEST) Received: by ytterbium.maphy.uni-hannover.de (sSMTP sendmail emulation); Wed, 01 Jul 2020 17:12:17 +0200 Date: Wed, 1 Jul 2020 17:12:17 +0200 From: Tammo Block To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH v2 2/6] console_struct.h: Two members for mouse report Message-ID: <938f84f44f6a5c79a96d03b25ad4d78bc703570f.1593615440.git.tammo.block@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need two values to store the status of mouse reporting, both need at least two (vc_protocol_mouse) or three (vc_report_mouse) bits, so use chars. Signed-off-by: Tammo Block --- include/linux/console_struct.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/console_struct.h b/include/linux/console_struct.h index 153734816b49..dd42287ed553 100644 --- a/include/linux/console_struct.h +++ b/include/linux/console_struct.h @@ -132,6 +132,8 @@ struct vc_data { struct pid *vt_pid; int vt_newvt; wait_queue_head_t paste_wait; + unsigned char vc_report_mouse; /* Which events to report to userspace */ + unsigned char vc_protocol_mouse; /* What protocol to use for report */ /* mode flags */ unsigned int vc_disp_ctrl : 1; /* Display chars < 32? */ unsigned int vc_toggle_meta : 1; /* Toggle high bit? */ @@ -144,7 +146,6 @@ struct vc_data { unsigned int vc_priv : 3; unsigned int vc_need_wrap : 1; unsigned int vc_can_do_color : 1; - unsigned int vc_report_mouse : 2; unsigned char vc_utf : 1; /* Unicode UTF-8 encoding */ unsigned char vc_utf_count; int vc_utf_char; -- 2.27.0