Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2135946pxa; Mon, 17 Aug 2020 01:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiPcW8fQBKW15fRg+0L/XKThuLwKM4M8FgI+tilk5zN4QFG2FiIEv//kWxB4H39aakiEh8 X-Received: by 2002:aa7:de13:: with SMTP id h19mr13426278edv.322.1597653213204; Mon, 17 Aug 2020 01:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653213; cv=none; d=google.com; s=arc-20160816; b=GA01Pmxnjoq6nN+cK3J4pIhj4CMpx5W8EWhzQU9HNXYp6B00CTGYZwhGhFF1YLdAsc Rv/FD2kVn0wTqoJbhDWWy4ONL1ISLV3BRxT8NkJz18ocvVkOqd9AzWkrc9IAJEV3jDpB wOQK5P5mQfsBt7vl6D9+/c0/pP2ZaGAPEtGH/0S3yRT21/H013xALQrj5RWjDU2D/fUC usO86Va/6FLuzEnZbdMbz9N+L3r5VHGTEcn2lLjKKDPqXyGZSvLaf4I45K3Tl55CsdP0 DfgGAg6IXAI2OkKZtk9kaeFrbvZCFsZogxzi+3I8NNCFtlydMZZOqXT3j/N9A7R4ESRf TUJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=07OcTn0WvfbdnvA4s7Eut/eKjTVLyM4q+0Qmy2LDm0U=; b=pnlAGel9uccaef6ub8qqz4phvgZVo02pNW5ieIEM7FuJ8jl8f0WyQ0JqeL0lKlwrjm 1PMXgSy2lWl6f3/IjHYkCrk3HVvIiHiBGzUuJVE4Pa3ti4woGAoxZ3koWAK5ovGD/QVq /j7vYqHXcgXSE6T7QLLxeE8Bm0Oe5pfD1aWAk3OisOxq3nVgrxIKMjI2k6dl2GwBAxx4 G85rMFa3ihYCVqPG4M3OUHoP4VL4wzDa71OBDiOCf39HiQ5T1LAKrbdtSAdTYDvDevqM iLBLGzrdiSn3/x6oew/gK/zlOqCl+tW6xLGEBeIwEd1sg8uFhrLhd7yGKMlKG4otmUyA x3Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l7ws862q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si10232598edp.162.2020.08.17.01.33.10; Mon, 17 Aug 2020 01:33:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l7ws862q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728152AbgHQIcf (ORCPT + 99 others); Mon, 17 Aug 2020 04:32:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728077AbgHQIcY (ORCPT ); Mon, 17 Aug 2020 04:32:24 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E0CFC061388; Mon, 17 Aug 2020 01:32:24 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id o13so7791383pgf.0; Mon, 17 Aug 2020 01:32:24 -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=07OcTn0WvfbdnvA4s7Eut/eKjTVLyM4q+0Qmy2LDm0U=; b=l7ws862qdf+QG/FRgRzM2zyRMT8buz3qjIIUIC911q8cLJC5Fr7zqyZ9VZdli+Y4CO mg02zvbTldmq+25rE+w6TL3nVPvfkF9Dsc6rBcmJ2PjPHZAvCYHfWytpyM/n4mrGCoY8 GYvfL+4pmdgrQD2EkIsKqmPzkDtq/mLjng08sY2/morHJ0/b2LgTwmp5BxkF9z4HvWfM Th3BZh/j01nqCWwKf/JvN0oEq5Mr5vfIKwiUsD+/WU46dmw1Q7UBfWnu1NCAlUCZw0uN 2JlQuG0h61ifPd4Wu1hHBKNUFSFQ9R+VIfWQz9U4TQIonljShIoAbbKnXjtNPL4an9aH D8BQ== 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=07OcTn0WvfbdnvA4s7Eut/eKjTVLyM4q+0Qmy2LDm0U=; b=ZcziOOUFP3inyjTYm2ljwcroAukqWolALrAt51dwS3S6lb74TzoamcM/a2z7YUN7bv 1FqWSZf7tCASxk/6qX2H4mbtp+33K3np/FYnQx31fwNYaQLcWuaFCEu/vXeIdTHTkzKF Vu4I7bftTkt2xwU5K4iyOjbMbSWjzU1b3dD5lFGI9X2WQk7/uKZppDt/df0ZAzSybIt3 hvnRFud1ChCuhKV45C5569mnlbkktOxKS+lU+cSgjPIGZTt4UafqxbYg8h50qlZivwr0 sQR1XiKsouGVf241EqJQWYgloGtV3J1VQ8kLFUVJeChaHw9wP2f0ZSigwbEYDkBE/tul s09w== X-Gm-Message-State: AOAM530HdCMFPk9QPFyKaIvFTNUxBd6JTjcY5LApNi0x/5UkMAnDtiQ8 AsQ99+gll6rpntuAt5sc+ZQ= X-Received: by 2002:a62:1614:: with SMTP id 20mr10690453pfw.258.1597653144118; Mon, 17 Aug 2020 01:32:24 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id b15sm18448351pft.116.2020.08.17.01.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:32:23 -0700 (PDT) From: Allen Pais To: mchehab@kernel.org, maintainers@bluecherrydvr.com, patrice.chotard@st.com Cc: keescook@chromium.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Allen Pais , Romain Perier Subject: [PATCH 04/11] media: smipcie: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:01:46 +0530 Message-Id: <20200817083153.22218-5-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817083153.22218-1-allen.lkml@gmail.com> References: <20200817083153.22218-1-allen.lkml@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/media/pci/smipcie/smipcie-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/smipcie/smipcie-main.c b/drivers/media/pci/smipcie/smipcie-main.c index 9ca0fc3e6f80..e7604b7ecc8d 100644 --- a/drivers/media/pci/smipcie/smipcie-main.c +++ b/drivers/media/pci/smipcie/smipcie-main.c @@ -280,9 +280,9 @@ static void smi_port_clearInterrupt(struct smi_port *port) } /* tasklet handler: DMA data to dmx.*/ -static void smi_dma_xfer(unsigned long data) +static void smi_dma_xfer(struct tasklet_struct *t) { - struct smi_port *port = (struct smi_port *) data; + struct smi_port *port = from_tasklet(port, t, tasklet); struct smi_dev *dev = port->dev; u32 intr_status, finishedData, dmaManagement; u8 dmaChan0State, dmaChan1State; @@ -422,7 +422,7 @@ static int smi_port_init(struct smi_port *port, int dmaChanUsed) } smi_port_disableInterrupt(port); - tasklet_init(&port->tasklet, smi_dma_xfer, (unsigned long)port); + tasklet_setup(&port->tasklet, smi_dma_xfer); tasklet_disable(&port->tasklet); port->enable = 1; return 0; -- 2.17.1