Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2135770pxa; Mon, 17 Aug 2020 01:33:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3J+Q6v267gXz511gixZIWlntAcP4MVe3XFqXuw39D6A6QHLxru2GnD2IqMwucZpimNqZF X-Received: by 2002:a17:906:496:: with SMTP id f22mr13801269eja.180.1597653192161; Mon, 17 Aug 2020 01:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653192; cv=none; d=google.com; s=arc-20160816; b=oO5dmB+MMioDjYXbqrt0TIreVgnm6azUBrxQR2wo/KBUwUXrrEJn2xTV/WJk6Vbq8F eUq+sAqUktKmywrTCKgYudtd7R0zM6ZYEn8V4WFBxEJyXXXZVb80jUx3lBSHEhNJSgbA P1EGGPezeArQF4iGrnccaYrhbiZmaiPdODgCB7uXsQp5PcoJtUT4DL4R/gvaCct9XqG2 3iuHNDHonVpMEi8g1VQF/2idxYn25w7L61Xev2wttp72HvBQZsSTbm2sfVNiEeEO51oc yFOfaxnbwPwA1QO6Gi8JRWukMePnLdBR6f71wTEaXsJTsD4RYB+hU4pHNzoKI10wnkzb 1PWg== 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=e3Og+eF42LgjnZGVUesfee3WTkmoUc4PC8c793SBuQU=; b=vexP3mAlF1uHRvyfz8XqXMCOZ3IZvQxqoVsEm0QAv+ZYtVuwAwd5PbJB2eaRbd3LXI LBzIZSwqbBPEEZeCJCbZHVDRwGd6pVOB3/zmaaMl2A73GxaLo2lk3x7T2IUX/3g9H/Em Ry8PRXZY2SF74gAsbkXX5w5XGsWLxdeQznEpunVax8pvfmZZpXAAPcVXOIlZ1PjsRbAt Vhkl6ZFq3/r3fDXGHLew41PZaRxlRw+UTP9KsMnIv0nh4zGaZ9f52U+43pK/FIiX3PQJ 6JQH+NA6GEsWti6c4xo686s8S4V8ukBguWtnTNv4vsrAUlQWmZsaSftCtvqp2jgiG+ik 0XSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WgoiJu09; 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 rk3si11011071ejb.12.2020.08.17.01.32.49; Mon, 17 Aug 2020 01:33:12 -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=WgoiJu09; 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 S1728027AbgHQIcT (ORCPT + 99 others); Mon, 17 Aug 2020 04:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727945AbgHQIcO (ORCPT ); Mon, 17 Aug 2020 04:32:14 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40EE6C061388; Mon, 17 Aug 2020 01:32:14 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id kr4so7465150pjb.2; Mon, 17 Aug 2020 01:32:14 -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=e3Og+eF42LgjnZGVUesfee3WTkmoUc4PC8c793SBuQU=; b=WgoiJu09z4J0Jj3XuHjmXRKp6QZJHcgPl1ICWv0c8Gp/4sOCo43HwNBDraeBOrRz2Z YZwz1TSpV78cMxbqMYqBgGkaxc+xCJwqzNNzgSRzuQe4MOeJlkA8ES3UprnEDKpR0prs 0kv1Y1kVCbmRB/L/cl64K1DpPrwzoSFnMUoTJGdktwTOuerqCzMAwEwUNcbm7hK1dbIj FNAYzYkQhshhFr1wSbDUQEj/BucIGRR/EyOJX5cz7RpRVRpp+Na7Kwevn3g2BucCTz0D wD1ixTL2MZmBs1BUCoEk0ZIw4QdiL5ZUSybxd7RujKFpkU4vQJp4oj8pR0jfNbmtrJ6u lI+w== 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=e3Og+eF42LgjnZGVUesfee3WTkmoUc4PC8c793SBuQU=; b=VRAg+agrxU8+q2xg6ur5mVk3HXMqZ4JzIiz+FuFDBM36UIp4eyKFhiRX+mp6rFWwbF xSJsgrksz2JDX3n3WJ6i9pcPcb002GxpmOTLhFXRDa94pE4J1J9bDpzKLKDB7lE+c563 yENqWZJ0E4xugSwwFeXYbb/WHD7ZdZoYM4mJ9mBNNjbEMf6Y6rvtbkboNlgnNUJ1VTaa WLFQnWq5HrTM+h13r33flCvdQggkriH2odZDVpqGg4VLiGiJ+7uMR3wB+pt8rBuEZvpf i1o2dPJk54c7o9rKcDRiRmzp2h9T2EmVho+jjguXGweUsqDS919K17TIVyBho2Dq0gB7 0grw== X-Gm-Message-State: AOAM532qRG/XgsTYB2xNovv/H/64VUIyuafGVjFgc0V1WvvIEwDGks7w QGW9FC6ryrf8Ek2wxzQjPkE= X-Received: by 2002:a17:902:8f82:: with SMTP id z2mr8443888plo.177.1597653133845; Mon, 17 Aug 2020 01:32:13 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id b15sm18448351pft.116.2020.08.17.01.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:32:13 -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 02/11] media: mantis: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:01:44 +0530 Message-Id: <20200817083153.22218-3-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/mantis/mantis_dma.c | 4 ++-- drivers/media/pci/mantis/mantis_dma.h | 2 +- drivers/media/pci/mantis/mantis_dvb.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/pci/mantis/mantis_dma.c b/drivers/media/pci/mantis/mantis_dma.c index affc5977387f..4df571ff272b 100644 --- a/drivers/media/pci/mantis/mantis_dma.c +++ b/drivers/media/pci/mantis/mantis_dma.c @@ -200,9 +200,9 @@ void mantis_dma_stop(struct mantis_pci *mantis) } -void mantis_dma_xfer(unsigned long data) +void mantis_dma_xfer(struct tasklet_struct *t) { - struct mantis_pci *mantis = (struct mantis_pci *) data; + struct mantis_pci *mantis = from_tasklet(mantis, t, tasklet); struct mantis_hwconfig *config = mantis->hwconfig; while (mantis->last_block != mantis->busy_block) { diff --git a/drivers/media/pci/mantis/mantis_dma.h b/drivers/media/pci/mantis/mantis_dma.h index 421663443d62..37da982c9c29 100644 --- a/drivers/media/pci/mantis/mantis_dma.h +++ b/drivers/media/pci/mantis/mantis_dma.h @@ -13,6 +13,6 @@ extern int mantis_dma_init(struct mantis_pci *mantis); extern int mantis_dma_exit(struct mantis_pci *mantis); extern void mantis_dma_start(struct mantis_pci *mantis); extern void mantis_dma_stop(struct mantis_pci *mantis); -extern void mantis_dma_xfer(unsigned long data); +extern void mantis_dma_xfer(struct tasklet_struct *t); #endif /* __MANTIS_DMA_H */ diff --git a/drivers/media/pci/mantis/mantis_dvb.c b/drivers/media/pci/mantis/mantis_dvb.c index 2da94be5b373..c7ba4a76e608 100644 --- a/drivers/media/pci/mantis/mantis_dvb.c +++ b/drivers/media/pci/mantis/mantis_dvb.c @@ -205,7 +205,7 @@ int mantis_dvb_init(struct mantis_pci *mantis) } dvb_net_init(&mantis->dvb_adapter, &mantis->dvbnet, &mantis->demux.dmx); - tasklet_init(&mantis->tasklet, mantis_dma_xfer, (unsigned long) mantis); + tasklet_setup(&mantis->tasklet, mantis_dma_xfer); tasklet_disable(&mantis->tasklet); if (mantis->hwconfig) { result = config->frontend_init(mantis, mantis->fe); -- 2.17.1