Received: by 10.213.65.68 with SMTP id h4csp203875imn; Fri, 23 Mar 2018 02:49:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELuKrVp80b+HDmu8fWYbpRab2ny3mvRaqhdxFv3wnlgyN2hAhev6K3OsVdenE0jjtrMRkr1q X-Received: by 2002:a17:902:5501:: with SMTP id f1-v6mr28375421pli.50.1521798595229; Fri, 23 Mar 2018 02:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521798595; cv=none; d=google.com; s=arc-20160816; b=C3twkx0cT1Wf5AS5vCIZeSc15D/dND2PWL96eB0PoIIdcqnus4wVC4HD5LV3S/+uWf Y3OHVP3ejH3W69Xvn5sqgz+hsm9+nKU01vHdh34Oajb7WPDcvGteMuUrgF0skpZYAG5G vM4C+f6sCQWxfQyR2rnligRSCmzZ9A0xnfMaSeWfwdb5inxwqASRK4KU6g08SLr/nF7e iPkNn65k5ywsJ80bASQdKnUoqG/1UEveEOMYPy6PK5mWrqIxSoewXevPsZufsh2Pp2Gw 64pqBglInDR5QGHH8QKqEEqGG5rUp5d6MNStXuBzMqDXo7RWAlEwNQTtZSYSWLeObVVW Y0Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id:date:cc:to:from :arc-authentication-results; bh=C/288wgta0DgAHztB6qfic1cjDo3FGWCjAT0GQjxojM=; b=FE2yzKsiBVp4lGYcaGRMW0NR3QfSnTGaCTe4yKQPnN6qezQK9uVs610busJ++M4UG2 08Tmha1EyIBcuIpQRe5BbZY3gdUxnVBJBopziB+NNY1QF1ntcw75smp6dlS8JUESllhB yCiMPXy8dFoNaKh6vAApn8KzQH5EHYhtiIyLTdZlFB9XPoujr1v5X8lthz/MNSDPocwf eJB2lrlSS9sehIKsb1805LPahOpRNzHCRH/0pBBkjLfk7NqKtFIP/GZC80DZBXpbXIk5 i+LqmFw0xHOh1CO9rsfHQpAynELw+94Vna5RpaeAtZJYhj30A/O/jIYFim+11wQ8AmY5 33qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14si2901382pgf.84.2018.03.23.02.49.40; Fri, 23 Mar 2018 02:49:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752035AbeCWJrc (ORCPT + 99 others); Fri, 23 Mar 2018 05:47:32 -0400 Received: from mail.CARNet.hr ([161.53.123.6]:42065 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751748AbeCWJrb (ORCPT ); Fri, 23 Mar 2018 05:47:31 -0400 Received: from cnzgrivvl-t440p.carpriv.carnet.hr ([161.53.12.131]:45808 helo=gavran.carpriv.carnet.hr) by mail.carnet.hr with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ezJIE-0000zy-U7; Fri, 23 Mar 2018 10:47:27 +0100 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id ABC3725055; Fri, 23 Mar 2018 10:47:26 +0100 (CET) From: Valentin Vidic To: Greg Kroah-Hartman Cc: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , Marcus Wolf , =?UTF-8?q?Luca=20S=C3=B6the?= , Marcin Ciupak , Michael Panzlaff , Derek Robson , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Valentin Vidic Date: Fri, 23 Mar 2018 10:47:25 +0100 Message-Id: <20180323094725.4904-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.16.2 X-SA-Exim-Connect-IP: 161.53.12.131 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on rigel.CARNet.hr X-Spam-Level: X-Spam-Status: No, score=-2.9 required=10.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD,URIBL_BLOCKED autolearn=ham version=3.3.2 Subject: [PATCH] staging: pi433: add descriptions for mutex locks X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removes TODO for tx_fifo_lock as tx_fifo is modified from both pi433_tx_thread and pi433_write. Fixes checkpatch warning: CHECK: struct mutex definition without comment Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index d1e0ddbc79ce..f6f106a3ff8e 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -87,7 +87,7 @@ struct pi433_device { /* tx related values */ STRUCT_KFIFO_REC_1(MSG_FIFO_SIZE) tx_fifo; - struct mutex tx_fifo_lock; // TODO: check, whether necessary or obsolete + struct mutex tx_fifo_lock; /* serialize access to tx_fifo */ struct task_struct *tx_task_struct; wait_queue_head_t tx_wait_queue; u8 free_in_fifo; @@ -100,7 +100,7 @@ struct pi433_device { u32 rx_bytes_to_drop; u32 rx_bytes_dropped; unsigned int rx_position; - struct mutex rx_lock; + struct mutex rx_lock; /* serialize read requests */ wait_queue_head_t rx_wait_queue; /* fifo wait queue */ -- 2.16.2