Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2137082pxa; Mon, 17 Aug 2020 01:35:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAUT3kAkXgV9wM0gvJYFR0npI5DSCOybL5Xm14AUPZWiMpFnvgff3X5H/1QkMfrr7+0jkL X-Received: by 2002:a17:906:9592:: with SMTP id r18mr13524079ejx.464.1597653358118; Mon, 17 Aug 2020 01:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653358; cv=none; d=google.com; s=arc-20160816; b=eeEcwz09Tyj5dvbfsvf8kMDza8bu7yuV5NbAIPX0LalhMZSfYAnrQpCogMDAD/Wmfh I/Pa9ym7nkpKboGhvCsKigHkcikthdERu3vKihF7Vf1jot/M02AX3GE2MtsA0XZWsgON LtQLxjf8oMb9u1v4XQa++Fenl1YmseCuhHKDil5Lb5O1o3HcysCXLqYHiYEC4odyZad4 v+7IhlyJ5vUqTWKc4dMpfOmtyFl/YSEBXf/n6bYEtfqfNwINoP4Pmk6774toLyVNQD9e G8i2+bnSqpjzLyZC/xzPEc5JLW74NIwZkBVbp/MozRAM6PStrme2jE0ycosoIyM6KTLp y7sg== 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=BpUIfyiY1033QwITtcsFngj/BQQY04YlOMIFJZLa7+8=; b=g4GWDto2w45mc/RT01wQPmOnYs1qXvvIgwRKApLJy+qzOkmdmlWaUe/YfHtocxyXAR G0NMqoYN1Ltxpc8sLNQfSJ06zYimAbIUrEyuN1NrzDCBBRKZLV00xdyQ+E+WEKdKeTG0 j4i1qT8OqJZiAu5qlrbOw+HIFrJEDKTzuAdj5e1cnaGXzpvfz0H9s2V5DPnmIRtU97SQ 6xsiFfcE/EqmYoAgvpisZKOYSC8cto1MLUV0PgKakRq7pi+P9ADQ87GPQgeXzCVOjF2K 30ufq6Y2g4cW0akMhd7blCe7hkq9YXpcR768sN8osAEyE/HmvQod/JI2KP9EZvTR/9Hd l9rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZOndhxRJ; 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 g19si3404727ejw.96.2020.08.17.01.35.34; Mon, 17 Aug 2020 01:35:58 -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=ZOndhxRJ; 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 S1728271AbgHQIdG (ORCPT + 99 others); Mon, 17 Aug 2020 04:33:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbgHQIcw (ORCPT ); Mon, 17 Aug 2020 04:32:52 -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 D0312C061388; Mon, 17 Aug 2020 01:32:52 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id i92so7644337pje.0; Mon, 17 Aug 2020 01:32:52 -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=BpUIfyiY1033QwITtcsFngj/BQQY04YlOMIFJZLa7+8=; b=ZOndhxRJ3kEbaFup5uwE3vRCh/fWHZK/tTXskLR+/ZHLmu2kJ6agoy8gcsU8BZgSbQ bNx+AiqivgU2wITRcKzE6YwQOFztZ+p5H6AWYfOGLc9MJkukU+jiVY2Db0tb+smV09Xb pFEC3viI/CDZFUzGwEsXRQm27W37vYPaM9vMxJdwMqjL79GhfzUjjug9fWzEe7wl4fQ5 lVSJ+ALfHyMuXyDOR3awBvGAqPX62bNsMpC23qq/nVCDllUu5DgKd1ICkUt7Qk/PQ67F GtWE3HdpmEzQTDxHoW+ss2rkANsti/yv4L3PIgXpwW/FdOD5apQZWgjwj5pCPZraRxGP yBDw== 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=BpUIfyiY1033QwITtcsFngj/BQQY04YlOMIFJZLa7+8=; b=FEjkldx3zP+W3AubP0vy0qaBYdn/GeMTw5r5eF5rJ/8/01j3tARTNsypbHuhUIjyyA wKKw9omtP9IvcwrjBxxL+IkSQRopI+O82MzCd/NZKAN1j4/x/nuqxq19tIJsMa1AwBLo u9mPcN65IPu17AQtenD+j8qZMEKAIIUmkS75Oq4eXLdJT0ntY4EP9NZLHqCyNrPjcEf1 aQw3aEW6LNEr6sjvLW3xX4hv1aO9sx9Kv4F8XzW6LljOoCZxpvNr06lrERch5WWSJvSe 5QYQa4fxNw2jAQxN+hPwQdxl3Az749/IQ2K7laHzlRpnfgZpipsSKqWkpXbrOPSNC0SG eWXg== X-Gm-Message-State: AOAM530dRCiC41KqezXpM3CL/qn+KZmk5zzy/teJdqg6uHuF5s7aV6x0 HBmhmwAu5WN+0xPtn3Piop0= X-Received: by 2002:a17:902:968a:: with SMTP id n10mr10479044plp.67.1597653172452; Mon, 17 Aug 2020 01:32:52 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id b15sm18448351pft.116.2020.08.17.01.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:32:52 -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 11/11] media: ttusb-dec: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:01:53 +0530 Message-Id: <20200817083153.22218-12-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/usb/ttusb-dec/ttusb_dec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/ttusb-dec/ttusb_dec.c b/drivers/media/usb/ttusb-dec/ttusb_dec.c index b8d39b2f777f..df6c5e4a0f05 100644 --- a/drivers/media/usb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/usb/ttusb-dec/ttusb_dec.c @@ -769,9 +769,9 @@ static void ttusb_dec_process_urb_frame(struct ttusb_dec *dec, u8 *b, } } -static void ttusb_dec_process_urb_frame_list(unsigned long data) +static void ttusb_dec_process_urb_frame_list(struct tasklet_struct *t) { - struct ttusb_dec *dec = (struct ttusb_dec *)data; + struct ttusb_dec *dec = from_tasklet(dec, t, urb_tasklet); struct list_head *item; struct urb_frame *frame; unsigned long flags; @@ -1209,8 +1209,7 @@ static void ttusb_dec_init_tasklet(struct ttusb_dec *dec) { spin_lock_init(&dec->urb_frame_list_lock); INIT_LIST_HEAD(&dec->urb_frame_list); - tasklet_init(&dec->urb_tasklet, ttusb_dec_process_urb_frame_list, - (unsigned long)dec); + tasklet_setup(&dec->urb_tasklet, ttusb_dec_process_urb_frame_list); } static int ttusb_init_rc( struct ttusb_dec *dec) -- 2.17.1