Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2135736pxa; Mon, 17 Aug 2020 01:33:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtxPudMnYz3ngQVsoR6f8qC06eVKm1Ovyqslv6ifZj7E/+fBFL0sxQMJ0an5o8kE+zzgZf X-Received: by 2002:a17:906:e218:: with SMTP id gf24mr14616561ejb.469.1597653186282; Mon, 17 Aug 2020 01:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653186; cv=none; d=google.com; s=arc-20160816; b=0vxmBvTT6qUHdiYJdUAlnLJltDJZmRmw0OJVdUTRcmRur//7zbnJK0iMmk/kEgVu/n dEgZaEykqfqiQ+2YlrLlvIpD/Vv2vI/nL3cY7H3NULwMOJHrQVigQDhIV/CBtq8YhuV0 2bVKwIv9GSxtlvEu6wPFT8dzkhSbVHdZxn5K94vBAPA1XDb4sfpiyT9RVRk61dHL9qfD 99ksMbOrPhqMSnGkQrSu6kdEtgLR5C/q5gtqH2/KMdnz4MUsCgLjZSUCS8HrrK+thugu Hl6FnDcUUG6w1qoNklxoQ25SCQleJ+2FGFLw68ejwg7+YCFrBhnae5dg3nyZC5UUHaJf jJ/g== 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=xlkl/Kq20mWjBqJTahwsbMlG2dOEwdXmK5fJnd50gLo=; b=sC4ETyKb9KhlPiIdtZpy8/LiO7it2a8tZVtM90xGUBQlcra2xxYJhXLgo2ywvO6pwx 5NRiDYQZv4rmIN0VgzBd2Esk0I8ArOchQ2Jeql5Q5GZeklt1Yd45hjwV5mDBCyB+bF3e ZaZaXklCocj20j/fzhGofT1Ay446kPec/3G93yRiG2sJuo+8cVKE8+GcFWgYizuOKP3S 3xyTH7V/LFUIdys0XBF9Sm+PPCzzhQXUBtjxTo5nnGKwHysUS4HG+tCJd+suTWpFzrke MSQYLketbQUKYXB85JUwj1/wLrr7YjA1We3DVKSFDf7v0x9KVPq0rvQsoJB7PYzccPhr +EEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TpOyiF8T; 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 u9si10850119ejj.327.2020.08.17.01.32.42; Mon, 17 Aug 2020 01:33:06 -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=TpOyiF8T; 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 S1727956AbgHQIcO (ORCPT + 99 others); Mon, 17 Aug 2020 04:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbgHQIcK (ORCPT ); Mon, 17 Aug 2020 04:32:10 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70CB2C061388; Mon, 17 Aug 2020 01:32:10 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id mw10so7353755pjb.2; Mon, 17 Aug 2020 01:32:10 -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=xlkl/Kq20mWjBqJTahwsbMlG2dOEwdXmK5fJnd50gLo=; b=TpOyiF8TvePjfIaV2pPgdU00ho11Lxcuva4WlR3WztWdTLMM4V6K6Nz2t9o+th+orG yYcschRIWGDYRIPnwuycLeXIqFfanckm6A5NtGqgm+UGmxcb2LZFoINvYz1KUvuVG3s1 yKq2uHpNUHhben2hyR2x6xKvdFn2YCo437iS//033Y+3u/Itgwv36HbwGcmqyIKTJb8P i8e5tT+mSDiGOLjldRWCLFf6jLajq7nd5GCCJAeHJe0rWO3UJHh8grTjsJ9F48oaeYRO jQ8gSglyJhj4kOSFTYLKok9Qs+9pbO13Vvfhu/1f8remVThIhETPUBvYUYadmu15TCAe Chhw== 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=xlkl/Kq20mWjBqJTahwsbMlG2dOEwdXmK5fJnd50gLo=; b=uI+vFjeHR/wHZHwh6qY8pM7v84AUw5eoQQbx4nB43pCfwNWR2pZU8hE3SDzhnQJRID /3xM35tk3EZ+tW+zAHXthLXm+qqcKsurDrAGErseYuFMPc+CShFhjj7N1iDlPYSFT5gh eR501lo96ou73Hv0ZVLK2WfKY4OLUzAaMFmJ5d0F6kciXO1E4UeEZb3ID/7vMqN1hfzm JX15eZoD36Dkj9NIIywqwnqZmxqTeRYgbaKEAzV+/I9czT51Nl9Bj9ubr/nyx3DmaeiR UeBMZz1dVM04wUe4NKo4ieX39Kocuzxg+LBVbToOq8/gEEkmVToBD3q3igMyQ0eCyrMe a6aQ== X-Gm-Message-State: AOAM532HI05vRMb/NRI6/TZM+RjHzdhjVPYXwOs6XanXhY9BB9ilXxXl zLpSNcptc8pb0LHa6xWU3vokqRn28dt79g== X-Received: by 2002:a17:90b:124e:: with SMTP id gx14mr12038651pjb.225.1597653130105; Mon, 17 Aug 2020 01:32:10 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id b15sm18448351pft.116.2020.08.17.01.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:32:09 -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 01/11] media: bt8xx: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:01:43 +0530 Message-Id: <20200817083153.22218-2-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/bt8xx/dvb-bt8xx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/bt8xx/dvb-bt8xx.c b/drivers/media/pci/bt8xx/dvb-bt8xx.c index 02ebd43e672e..4cb890b949c3 100644 --- a/drivers/media/pci/bt8xx/dvb-bt8xx.c +++ b/drivers/media/pci/bt8xx/dvb-bt8xx.c @@ -39,9 +39,10 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); #define IF_FREQUENCYx6 217 /* 6 * 36.16666666667MHz */ -static void dvb_bt8xx_task(unsigned long data) +static void dvb_bt8xx_task(struct tasklet_struct *t) { - struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *)data; + struct bt878 *bt = from_tasklet(bt, t, tasklet); + struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); dprintk("%d\n", card->bt->finished_block); @@ -777,7 +778,7 @@ static int dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) goto err_disconnect_frontend; } - tasklet_init(&card->bt->tasklet, dvb_bt8xx_task, (unsigned long) card); + tasklet_setup(&card->bt->tasklet, dvb_bt8xx_task); frontend_init(card, type); -- 2.17.1