From patchwork Thu Aug 8 08:11:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757089 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 956FBC52D73 for ; Thu, 8 Aug 2024 08:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gFAHdHbSCvCmFdkOYebjZm00aZdGB/6GINbpF7hXjDk=; b=AyNVlkZB+tkcC/ lFt4UghJJu2tyW6yD0NRznPI6Sp3RBJjlYLGw5EY/+fLT7CYfmd3o4crtJITEQGb3iI/L16saU2EV 5ejDc5OPe3EHwsJY3P97APeCeoqxi7CGothCl5joLBKVqffexDb4RUnPvlxj0Sy8MEHUYfKFtu1dA yuRoUDu3nQYnS4iSvlA/jtatjNnS1mhy2AV0ZkZsSgYuu6WtoDxf6lV7iNWUjnCwyIiGXAZXBTyD+ JTGZ7XDSlAtilikW3U0Szo7bBlKmB2smcxKmg/atjpBFjmFqanfoBboGskzgULGPil9/wS0hcMZtW mUiG8+X8W96nqRhxsfgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbyGi-00000007Xxc-0KVd; Thu, 08 Aug 2024 08:13:08 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbyFW-00000007Xgo-0Uyc for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 08:12:05 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5a309d1a788so648847a12.3 for ; Thu, 08 Aug 2024 01:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723104712; x=1723709512; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=gFAHdHbSCvCmFdkOYebjZm00aZdGB/6GINbpF7hXjDk=; b=M4wUrX/pwsHSQZI66x4sB1SHd/C05MMvRbwatTTlG3+dZh16XVwtL8fcHW7Lba+qyM stBspYGRx50fGIdibj1taHD4P7OyphvoqNTfy9LIhmfl49nh1LSeQTAXkwCKzvV4Hue5 mQaQNImjW5pDLU8ii10+wGip+s/nVn5zmNjXhSDbuNvzGYgoaC/Q2Cp0UNjhMweHBGyx xQgrUzg9nPqLWN5hMwSL1lVmdriXNscoTd6Q8erOQyH1D5glWjUJKzxes8+Fk83o2i3K WgSPtxFAGMnGXcTscBaUBpu94qrGtmEY/dZIczjrJ9+xAOhzdJDzYXsJniRo2sI8LLz5 JWvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723104712; x=1723709512; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gFAHdHbSCvCmFdkOYebjZm00aZdGB/6GINbpF7hXjDk=; b=izK/kmxUaOWliW0JHziZReIhuIKO+Or39WsixINKtyN8RT3GNpImNtbv8rNOSAoLss CXPYRt4KEVh2IhaMxAsM9rs/+SWye8XQJ+vgAsPgVR8jTVFaFJDZat27kb6Ibgec/P3y DhVsCMmY65aQNjNYZN53C9639NwjuT67rkhnIIbJTxhmRrrKBZ5XFbDRWWBqyplpjyB3 n/kHlKEzeWfTcBeBQtfsmz3BmQIxLrMSk2WSFqhDdS38YJFQLn9/KKg1ZSXsGyqyh9KU kVju1qzN3NaINkFzctqtn5UMHPJXhUmbJhBs+JwQ3NRGzjOO7LXNfVaguXk2hftAz7gG x13A== X-Forwarded-Encrypted: i=1; AJvYcCWU0xLJEG0FwkaU+MDnwBoj4XK62OcQmHLTccJPRdk2gaxD3kyCdFtAAcnz4Ar1kx/LUJtQkRt+qSZwE7cBl36rErj7cgMt+FJwTytudEP/eO+Gopw= X-Gm-Message-State: AOJu0YzTokwMo0jtnDBPHSmjWj8+9VfRY1YvEZfLqk4XxWtgJbQZAede w775pe/9kODlSze8mmAZb/34rZJj55mkQ0lX/jUhG04c1zdEOtkaHkGcuR9XK1c= X-Google-Smtp-Source: AGHT+IFVHcQpOJ1IA30E9TCFE76Yp+RCOzBaCHLeFkPrR8+hAGw9wBBdmQAK0dZ+KGxkQvl/jx5+kg== X-Received: by 2002:a17:907:970c:b0:a7d:cf4f:1817 with SMTP id a640c23a62f3a-a80907c9862mr69351666b.0.1723104711847; Thu, 08 Aug 2024 01:11:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9c0c578sm716931166b.73.2024.08.08.01.11.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 01:11:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH v3 0/2] tty: serial: samsung_tty: simple cleanups Date: Thu, 08 Aug 2024 09:11:50 +0100 Message-Id: <20240808-samsung-tty-cleanup-v3-0-494412f49f4b@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMZ9tGYC/33NTQ6CMBCG4auYrh3Tlh/RlfcwLgY6hSbYkhYaC eHuFlaaGJfvl8wzCwvkDQV2PSzMUzTBOJsiOx5Y06FtCYxKzSSXOa94CQGfYbItjOMMTU9opwG 0RhKFKFBWOUuXgydtXrt6f6TuTBidn/cnUWzrfy8K4IBlpTKsdSY03Xpj0buT8y3bwCg/kfNvR CZEqLpA3VxULuovZF3XN5XmeiH8AAAA To: Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , Jiri Slaby Cc: Peter Griffin , Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_011154_186176_0650E52D X-CRM114-Status: UNSURE ( 7.49 ) X-CRM114-Notice: Please train this message. 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 While looking through the samsung tty driver, I've spotted a few things that can be simplified by removing unused function arguments and by avoiding some duplicated variables and casting. There are no functional changes here. Signed-off-by: André Draszik --- Changes in v3: - undo too eager removal of 'const' where unnecessary (Jiri) - Link to v2: https://lore.kernel.org/r/20240807-samsung-tty-cleanup-v2-0-1db5afc9d41b@linaro.org Changes in v2: - fix -Wdiscarded-qualifiers warnings - collect tags - Link to v1: https://lore.kernel.org/r/20240806-samsung-tty-cleanup-v1-0-a68d3abf31fe@linaro.org --- André Draszik (2): tty: serial: samsung_tty: drop unused argument to irq handlers tty: serial: samsung_tty: cast the interrupt's void *id just once drivers/tty/serial/samsung_tty.c | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) --- base-commit: 1e391b34f6aa043c7afa40a2103163a0ef06d179 change-id: 20240806-samsung-tty-cleanup-ffae1515a284 Best regards,