Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1065097yba; Fri, 3 May 2019 15:26:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQqDa9P9Ka+6r2Nf8bvV15NnWImeaaknq9FmwDKQGFG5uyqPgQ4xfvjvZ0KCsctWBn/ONh X-Received: by 2002:a63:191b:: with SMTP id z27mr13938354pgl.327.1556922415073; Fri, 03 May 2019 15:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556922415; cv=none; d=google.com; s=arc-20160816; b=bXPKWM2HTiGB/ms2o76iaarc9xf738/kYOcYIxny8kvhfkPvHMsMJuIdpq0Igog9vf 3g7u09LK782z6HUr71BQ7Rg2Tx0YWBO3IHuK2nbq+xyfUrXxFE7NJTvy2YMzpU02IXOX +ZpnOmeBkVMRYFVfXZrp9kW4S9npNt8fqORrQKaMFbD/iJBqwlQ/gDcTaF3G/hopSCRk Zqr0GZKn2aZOhLZjCBIYB1efvhtyFG5HXe1Tgc1vIitZj3SIFDD66LG/wCXBqMfjtayB xxzgvZLbPtyK7GY+sR6vUMYziHAq7/+Xbolymuz/8rA0CNwuV+q0DCSjlFMls91WoqfA kIeA== 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=HXos2jVvt23sEGQ2FQBQJsKRHBVFtxk8JTRDuuOZjhU=; b=LmdTeqxIiSGJWVUHnHeJPjaDbMCIKaNQPppspht8qiNbTLzK/m+XiidtvJpxMvmP2C Bef1RwUd9AeWUFKXFrchruJNfOW+1fIp7tJC576kKy88UZxGiosjUC0YUqv33U2CkFFM 5jiohWxT9AlvezDqkXS5/MgtJ9XChZ4z/QJf8973XSuoYLkmT9kfMwQTqbfU+SHqVj7U hRIrbxBmBcNoTzBeB1dSsDiAlVlSjoz42Bjfi6LJq/PRVFhg9yLfwuno9hI0k5s+JZdi klmN3OfS/tamrzrjtb3oYMPNWYqc9Ifq9V1Iq66IDq4HcYg6Fg/qp/HB4djrddT4SVlS Li2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cshVJY3S; 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 u6si4167123pgr.12.2019.05.03.15.26.40; Fri, 03 May 2019 15:26: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cshVJY3S; 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 S1726776AbfECWQ0 (ORCPT + 99 others); Fri, 3 May 2019 18:16:26 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45659 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfECWQZ (ORCPT ); Fri, 3 May 2019 18:16:25 -0400 Received: by mail-qk1-f195.google.com with SMTP id d5so318007qko.12; Fri, 03 May 2019 15:16:25 -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=HXos2jVvt23sEGQ2FQBQJsKRHBVFtxk8JTRDuuOZjhU=; b=cshVJY3SgZerxIj0AHhggAibB5NZbPleKezdrPUdWojsti39ecMZQU/GdNIbxlhrYu jkcn/oslpB1yTTpXF5+cBKLS3JTLfkGsWuWlqNRp8FnSXSGjdhUaoRcxaB1fiwkFL28O L8H8TCMUJ64MaQZlHsePK5mBFq/OsUqCFBRpE3LwHv6ed7Eetpxhhrz7G1ipwt8RoLFN 2VxwMozP6w/7IccThhvPKf1UDFw5oTJ6FvZ0czG4U3APBy1gnCnlp56lNnluraNqwx5Y coAUj0L4rf/TTiwYb+DdbQmjk/OcVSqM61xn4FvLzjJdUWlBncBeNs0UGumszChPweLZ gS0w== 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=HXos2jVvt23sEGQ2FQBQJsKRHBVFtxk8JTRDuuOZjhU=; b=Bw24jrWtsjDfnymean2rC2GD2JiQ6oLX04UKReZ4oIFHnlZcjqPMbl5V1X3KlMC7PG ygVh7PhMTXvTqKTizDtbNEIP9wVWQx4wKCB1EZOltbX/GSQIXpDP7uwZBvXndcL2+8bI iJW9aruRh5oDKDxEp7jYDdLaDijcSh1W5qAtnDftBrV9XaR5PLD7MWNmk7QeFlPWMFvJ hwhORWl9nBYZk8wCNy84oFKHCtnDxGI7F3ueloZkFyFyzdVNAwvcHGWlNGOvr0tLLz4s KmSezMPh7glblmIOcQdCA4N8/SRGmlyWsjXWnQo3MB2prtdlR/G/Qx3aR4nHoX+HMcbn VJwA== X-Gm-Message-State: APjAAAWT2TUId3UPpWcbp6mlbs3Yy7nqJE5crQTdbkzuMnUQKLWL1mo7 Ru9AYBgUO/sFVKvZDa4Lzjg= X-Received: by 2002:a05:620a:1326:: with SMTP id p6mr8885799qkj.265.1556921784672; Fri, 03 May 2019 15:16:24 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id j39sm2050285qtj.69.2019.05.03.15.16.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 03 May 2019 15:16:23 -0700 (PDT) Date: Fri, 3 May 2019 19:16:13 -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 4/4] staging: iio: ad7150: clean up of comments Message-ID: <35ccb46902d0a9a79b5c481d3d3cb9256a390c99.1556919363.git.melissa.srw@gmail.com> 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 3a4572a9e5ec..775818b0761e 100644 --- a/drivers/staging/iio/cdc/ad7150.c +++ b/drivers/staging/iio/cdc/ad7150.c @@ -162,7 +162,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, @@ -484,10 +485,6 @@ static const struct iio_chan_spec ad7150_channels[] = { }, }; -/* - * threshold events - */ - static irqreturn_t ad7150_event_handler(int irq, void *private) { struct iio_dev *indio_dev = private; @@ -576,10 +573,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