From patchwork Sun May 6 10:44:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jasmin J." X-Patchwork-Id: 10382721 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 352DA60318 for ; Sun, 6 May 2018 10:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24C7528C68 for ; Sun, 6 May 2018 10:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17F7628D9E; Sun, 6 May 2018 10:44:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2449728C68 for ; Sun, 6 May 2018 10:44:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751118AbeEFKoc (ORCPT ); Sun, 6 May 2018 06:44:32 -0400 Received: from mail.anw.at ([195.234.101.228]:36897 "EHLO mail.anw.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbeEFKob (ORCPT ); Sun, 6 May 2018 06:44:31 -0400 Received: from localhost.localdomain (89-26-40-1.stat.cablelink.at [89.26.40.1]) by mail.anw.at (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id w46AiSeU008326; Sun, 6 May 2018 12:44:28 +0200 From: "Jasmin J." To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, jasmin@anw.at Subject: [PATCH] media: Use ktime_set() in pt1.c Date: Sun, 6 May 2018 12:44:22 +0200 Message-Id: <1525603462-26734-1-git-send-email-jasmin@anw.at> X-Mailer: git-send-email 2.7.4 X-Antivirus: checked in 0.017sec at mail.anw.at ([195.234.102.72]) by smf-clamd v1.2.1 - http://smfs.sf.net/ Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jasmin Jessich In commit 20a63349b142 a new variable ktime_t delay has been added. We decided to use the API functions to initialize ktime_t variables within media-tree. Thus variable delay needs to be initialized with ktime_set() instead of setting it directly. Signed-off-by: Jasmin Jessich --- drivers/media/pci/pt1/pt1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 55a89ea..5708f69 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -485,7 +485,7 @@ static int pt1_thread(void *data) if (!pt1_filter(pt1, page)) { ktime_t delay; - delay = PT1_FETCH_DELAY * NSEC_PER_MSEC; + delay = ktime_set(0, PT1_FETCH_DELAY * NSEC_PER_MSEC); set_current_state(TASK_INTERRUPTIBLE); schedule_hrtimeout_range(&delay, PT1_FETCH_DELAY_DELTA * NSEC_PER_MSEC,