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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 686A0C433E4 for ; Mon, 17 Aug 2020 09:17:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F23BA2072D for ; Mon, 17 Aug 2020 09:17:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3diIUg2p"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eqHEvOD6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F23BA2072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=loMU3STgL8utdeaqKJV8hKm6ZHihhi0wmXNTUvN40i0=; b=3diIUg2pLn7dRQBgyy49IXiEOc 9psjipJFV2JrQFsJ7+GkRRTmwf/mXqRrY9GROwiN7cVOhIy8hhIkpNQC1cQimTV+arVyjPpBmCKpP EYDDP7nfvgNTlZofvLk47mDho1GLHWB2rt3Bn6fUiswRAAw3rdKTPE7Wo/p7tRvZVeAG2YzZcQ4BN qpK5yYcKCf7uAnsGEPp3Q7BPcGHi1P05CR36pR3mmkuEept8mmNNibIRoILEPyZlg4tni7CWa59ee kHiTXVZLUJcmQpZdEO8BXWsTiiufSZKzUtBPGjR7aYPNDJ1wEM6CuKEBkDAQBduBrgodlNs6V/aPd pDHra2pA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7bEt-000379-CM; Mon, 17 Aug 2020 09:15:35 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7azb-0003Tg-Bb for linux-arm-kernel@lists.infradead.org; Mon, 17 Aug 2020 08:59:56 +0000 Received: by mail-pg1-x543.google.com with SMTP id v15so7800151pgh.6 for ; Mon, 17 Aug 2020 01:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bfbk6qu+Dh0r09/BC2HVXkZhe9/6tVYt11hNr0Vm+DI=; b=eqHEvOD60MZgX5QZiePO/SspTddcQhdgDeNCR0Mu0EohogFtoim9ZkpjIFOkxExKkV GcXVa3oznDDxllthJndBo0kfvWz7VfsWVYM29+Efm6v+9NIBXW4oqCm5P1PyrK+NYpd+ 9bmcq7UrAawZ2temd47NpyFCLPMwIvmx0FvUf4WNbQ3P46MunRJUvSzick/BSb5onCWf pUyDwHsKJrMBe4XRtdo6RMydJkB89oFjWH7ubvmVKtxkHsKDJE1gwVmpNtwyGzYUyvG7 m/kOhs50nXk+/R+4pEyb+x+3OOzw/Di520QgWIpIR7WzYdlXiOIhUoqwM9F1NMGZ1lP4 M5qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bfbk6qu+Dh0r09/BC2HVXkZhe9/6tVYt11hNr0Vm+DI=; b=b+0L15jF1bQxf0/wB7QP//OrrXzZfb3UaZPzO808828gAHBWnJcR7D+usYsz/R3Mvd lS3QQ1ShTplvlxIxxWFN1rV0nRaUry/57ftlJd8yOPboKPCLy7HvWcy75Khm9lJ5HUxi 7w0HUFCVb2TGoBhdhS1SiglDO/+t3URodcxPyHgx94aZ2hasNNSq/dGfDx7tVUgmLHiE 1VwaL+zH6cfinJfzxRlhSqh8yQmXAWBnO9d+ts8rzuLonJ0Epb2q06N9fP4BxvrPp4NY u1M5LuZJ8pgsvfeSado0QiN8Jmcb41CxjIfpWmx8opMQW9Ti7HxSoPU7H8oWADiWQv/X 8TJA== X-Gm-Message-State: AOAM531nDv6vA8Qf3gw25hae98MDibBUQ0ojkvncRVY+8dSUpTJ6YBvt PAdiZs61bQpw2nmbdMtr+s8= X-Google-Smtp-Source: ABdhPJwbOUjxkSKQIB51eMU9r5yw0K1XtQNm4cXz6JwSEOXlV6ZMtYAd8hVyZnS9wqz7EYBa7vpvLg== X-Received: by 2002:aa7:8c42:: with SMTP id e2mr10278896pfd.181.1597654785029; Mon, 17 Aug 2020 01:59:45 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id j13sm18508547pfn.166.2020.08.17.01.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:59:44 -0700 (PDT) From: Allen Pais To: richard.genoud@gmail.com, gregkh@linuxfoundation.org Subject: [PATCH 4/4] tty: timbuart: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:29:21 +0530 Message-Id: <20200817085921.26033-5-allen.cryptic@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817085921.26033-1-allen.cryptic@gmail.com> References: <20200817085921.26033-1-allen.cryptic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_045947_747101_62E96B31 X-CRM114-Status: GOOD ( 14.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: keescook@chromium.org, Allen Pais , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Romain Perier , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/tty/serial/timbuart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c index 19d38b504e27..2126e6e6dfd1 100644 --- a/drivers/tty/serial/timbuart.c +++ b/drivers/tty/serial/timbuart.c @@ -172,9 +172,9 @@ static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) dev_dbg(port->dev, "%s - leaving\n", __func__); } -static void timbuart_tasklet(unsigned long arg) +static void timbuart_tasklet(struct tasklet_struct *t) { - struct timbuart_port *uart = (struct timbuart_port *)arg; + struct timbuart_port *uart = from_tasklet(uart, t, tasklet); u32 isr, ier = 0; spin_lock(&uart->port.lock); @@ -451,7 +451,7 @@ static int timbuart_probe(struct platform_device *dev) } uart->port.irq = irq; - tasklet_init(&uart->tasklet, timbuart_tasklet, (unsigned long)uart); + tasklet_setup(&uart->tasklet, timbuart_tasklet); err = uart_register_driver(&timbuart_driver); if (err) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel