From patchwork Wed Jan 10 10:21:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13515909 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D376DC3DA6E for ; Wed, 10 Jan 2024 10:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YS2mK90tliAfBsLPFjqVjDVDbwHzfEg1vyDM9aXqgD4=; b=sJiBAHvi1IXbwe 1RK1gdV3SIkRzRjfTABvdo/U06kg8I9xaE8q1NU8pvxfebQL43YVuID0ZLHH0xalIKBdfqq0n4Vuw k8JnHizufhc/hbE/1bUKyROUfn6qTKlJhM93/Rz7ex3pskleLfjBWn+fOMMDfElbHWapOq0yfBX27 7avZs05WpTEWwKXlqr4C5NOHblQZQmqmM3KDA+9aqpq/0mTqBfRqprutczWzv95D/eBmegJnmGDK5 MRU2ekzsiUFy7HItgePrAGE6qedQ+bqU5is5V1CXbtM0aOe7Kecl978ScQ8kgf8R2HwthI203spwT nTvtGPWBggoygHV0UDQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNVid-00B0Zh-2x; Wed, 10 Jan 2024 10:21:55 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNVi6-00B05p-1c for linux-arm-kernel@lists.infradead.org; Wed, 10 Jan 2024 10:21:24 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40e4582ed74so32220005e9.1 for ; Wed, 10 Jan 2024 02:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704882081; x=1705486881; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aIejJEXeNUqkKRlWpyybjPC4hGJCbHArkKwU6CRLU6k=; b=Less3Zz4MJ51AFfW6yEOTNpImf94k1HKt5Q3iOppV4Hf6pKFclA6Zsoj6De2LjoVS3 zoPPVVDZ/GoK/J4B4m4gJDKLEatQUNBpu/vD+61tCQwc4BwgEQwN1xq6ZdTLAdxhNn8C mdQ2prUx8azuBcHL4zdCso0RP8jDZ9LK1UEWKQMW+mTR7zMpjUr2DYmlU6xYUWFeJO54 kcS35HGpgiWEpJ2nb6SxnMg9YjTpDRWbvae9XEM6EQ0ao6oZpaiqRS68KV+fJkBfB96Q C03061UVGbMS9PPe0mjeMgnG0RRZqFbWLnlvffIMNbtjDuw/9Gi5iggP2rbdu+vT7UGl GmQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704882081; x=1705486881; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aIejJEXeNUqkKRlWpyybjPC4hGJCbHArkKwU6CRLU6k=; b=VAVxTJpt40twCvYLqhk+BWMopifisKuypVITw3LePhQLnUgzSy1AHlJJdqqf9v61FU vCagxHG0WMsnGW7h3ivgDQCmEFRlb1NQNlRlYbqqTVmUsFp4pbkndhMGsdxa3FczY6zk lla3XR2LGnOLnrScO3A9pZTwDzSdvjiUJyTOOc6Oz9wlraAtEGd6IAE3zEFDzvjuRhL/ QtChKqQImtpowsRn26GWP7ccjc2W9EW1liLTdHQQ7ydlp56xOwYuPZsnqw3oQTQqKBcG sHaB1mXzlAsw+E+bOHSG4r2tzx4zbRd338ull1pSOA3W1WhAZGGaPaUmQq8Ylesq28mz isHA== X-Gm-Message-State: AOJu0YzT3bFaa5rNCHEmPLpJNsjBPqP93nvaEokdWpkPHuRb4mAcoH3n ESWTkE8cZhTTIn7KIIb7kzY234xYE7yGEg== X-Google-Smtp-Source: AGHT+IFtDvi8wjZKg9pm0ERSI9OUVSk7oMwH+ipIk06V0XhYNU2+w7zsSgC+1btLE2dAAQHJq3B/vw== X-Received: by 2002:a05:600c:1d97:b0:40e:567f:38d7 with SMTP id p23-20020a05600c1d9700b0040e567f38d7mr188898wms.225.1704882081232; Wed, 10 Jan 2024 02:21:21 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id j7-20020a05600c190700b0040e52cac976sm1625302wmq.29.2024.01.10.02.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:21:20 -0800 (PST) From: Tudor Ambarus To: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 17/18] tty: serial: samsung: shrink port feature flags to u8 Date: Wed, 10 Jan 2024 10:21:01 +0000 Message-ID: <20240110102102.61587-18-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20240110102102.61587-1-tudor.ambarus@linaro.org> References: <20240110102102.61587-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240110_022122_576282_00BD5D04 X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There's a single flag defined as of now. Shrink the feature flags to u8 and aim for a better memory footprint for ``struct s3c24xx_uart_info``. Signed-off-by: Tudor Ambarus --- drivers/tty/serial/samsung_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 5df2bcebf9fb..598d9fe7a492 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -90,7 +90,7 @@ struct s3c24xx_uart_info { /* uart port features */ - unsigned int has_divslot:1; + u8 has_divslot:1; }; struct s3c24xx_serial_drv_data {