Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1159551ybi; Fri, 14 Jun 2019 09:34:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX4v6dHxcl+XpdJMx546C42zRzj0xuil2dZ4cEsz5PJR5N1UwW92Zgzk1bBODpSy5npCFA X-Received: by 2002:aa7:8dcc:: with SMTP id j12mr34520661pfr.137.1560530085333; Fri, 14 Jun 2019 09:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560530085; cv=none; d=google.com; s=arc-20160816; b=ZLyPFoTCMBfyeDCbWqi85qxH3LoL9YxQUbsn9pJninwGzmAHyNYXAK+s4VZLlwpSxQ Brqxm1HqxSTmqiQau6Nq36OXRIMjaH2EfXhzuNOLXaaQ0g+GcyLSoAyuTkYRDIW8C1k8 YI1qsyp53SbmIEaAIdOumP7Qg7GOLNg/XSQG4QDNg/BhaffbxtGrU/Rv0cITbdIMuSNj rlVxhxsFyDfO6d1vlXmgLbHhH82eJZlAUXv7Mzm3a1KEtvAgYfaTuj6Ziu+CDS9ijkYK 0PWOoMqWhVC5H+ouHFfFAc2o3aSSGzWlLeV9k/2fJ0l67erx/w+TcDm+9arjQ8TjCBQ6 7XIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fFqxIRcGH8oZzLwiEq09xzWUQlnGrozgrNZLPkvhIj4=; b=oIbc/XzKnUev3im5wb5KenmwaoRJaPKMki0WnDgGA1x82hcr5VX52wNdh1skh+4g0f TFLPuilu0Wdt8hy8YInIchdRaKUNnP6BAdF6YisnIV19SVc8Azq3Ydd+uiOuVfkmzWPn cxv7WoNtQ/l4678DMSR1+7Bv+hiY1czNcEB+mVj4FuH3BOO937uovUrrjumShcwO3tNV ID+Rc1wtSqW44MxN/H9VY2w7lj/YeLEqedL4BaHLBO+bFxBGk29mkNvIG9jXOZBRmo1f k/PBKW/BnuwqjuvQsyrKqWsUPG7OXP3qL9qj2fMuL9Egbi1o9/kmiO9gKNEK1VFxkzPo DIwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YNTWic+1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si2964787pgi.341.2019.06.14.09.34.28; Fri, 14 Jun 2019 09:34:45 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YNTWic+1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726404AbfFNQda (ORCPT + 99 others); Fri, 14 Jun 2019 12:33:30 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35224 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbfFNQd3 (ORCPT ); Fri, 14 Jun 2019 12:33:29 -0400 Received: by mail-wm1-f65.google.com with SMTP id c6so2948215wml.0; Fri, 14 Jun 2019 09:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fFqxIRcGH8oZzLwiEq09xzWUQlnGrozgrNZLPkvhIj4=; b=YNTWic+1630gnNTb8Sch4/BCNM++THosM5ESxK7efvK/NDqX1sXG4qNMCR5f5rC1nd n8QoPEdC1SHcx6nrTfTfubnsLaC7ny7AtItLgAGfU/TO02I7g9RT1kd2I1IW+T2/mu6i MV029DbEAYFmZR8tXvdtpd0uyW4verAT15QQTJeznWlLfI5+aXkZnl2/Zv7T3kDoxtzQ 4aI/vsNRAEM7Wym4D892XSVxXOrjiQogg2yJWUMZzdcZNLK6IS+vjMioakjvaVS/RXrW /gRQCdbIWWW31q7fRau0RSX1yqM2cdgqSZmLL2Me1dtzHXB13BViKgWORjzqDoDOxP+v RuTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fFqxIRcGH8oZzLwiEq09xzWUQlnGrozgrNZLPkvhIj4=; b=lRT5+UX9r8GP9SOId7z68ykoNkgBBATBY20lgfSelipQJBtv/Fkj5Cc1F4OoMd+Yeo 6hI4Og1sXiArOIGl+HCIm/BVbk3yVoKYNlvrWxdMhbWuXePUBxPNDycv4oVR8QLX+T/X 7h16SWQzJ6n8Q1OgsNXvXVXhzkYZZZrcOeP9nVHq46Cc41iCYiz3mNpgOH3L4oXQaLB1 IlqSLnaNmeCZ/EBcDEGHSJQFZKdMx6Wo6KP1ZoHzAbh5fh/85yPdZCB03N/1ia0uzJO1 NIUIJlX1Hccfvc0jbW8uL7yBp29FIJNSmKMvgSYDY3iju27j6ZE7J+1t9r3BVfcwCUMj wnkA== X-Gm-Message-State: APjAAAVeKV8o/UAnCslFq1GErASCLadhPceXg2PaUIPnpplXNEhrC/dX VUTiQYNchPUHzYVEZEcPI4A= X-Received: by 2002:a1c:452:: with SMTP id 79mr8895726wme.149.1560530007368; Fri, 14 Jun 2019 09:33:27 -0700 (PDT) Received: from smtp.gmail.com (1.77.115.89.rev.vodafone.pt. [89.115.77.1]) by smtp.gmail.com with ESMTPSA id y6sm2864580wrp.12.2019.06.14.09.33.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 09:33:26 -0700 (PDT) Date: Fri, 14 Jun 2019 13:33:19 -0300 From: Melissa Wen To: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , Barry Song <21cnbao@gmail.com> Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH v2 3/3] staging: iio: ad7150: clean up of comments Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org General cleaning of comments to remove useless information or improve description. Signed-off-by: Melissa Wen --- drivers/staging/iio/cdc/ad7150.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c index 7d56f10a19ed..51d6b52bce8b 100644 --- a/drivers/staging/iio/cdc/ad7150.c +++ b/drivers/staging/iio/cdc/ad7150.c @@ -163,7 +163,8 @@ static int ad7150_read_event_config(struct iio_dev *indio_dev, return -EINVAL; } -/* lock should be held */ +/* state_lock should be held to ensure consistent state*/ + static int ad7150_write_event_params(struct iio_dev *indio_dev, unsigned int chan, enum iio_event_type type, @@ -479,10 +480,6 @@ static const struct iio_chan_spec ad7150_channels[] = { AD7150_CAPACITANCE_CHAN(1) }; -/* - * threshold events - */ - static irqreturn_t ad7150_event_handler(int irq, void *private) { struct iio_dev *indio_dev = private; @@ -571,10 +568,6 @@ static const struct iio_info ad7150_info = { .write_event_value = &ad7150_write_event_value, }; -/* - * device probe and remove - */ - static int ad7150_probe(struct i2c_client *client, const struct i2c_device_id *id) { -- 2.20.1