Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1064812yba; Fri, 3 May 2019 15:26:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC25Q49Xw+avmwP7MY0QGEZ/8gW/wCpf89RViMjjeJuiRuClKsQ3JdtqeBqllxiX6DE3pH X-Received: by 2002:a17:902:1c7:: with SMTP id b65mr13738646plb.2.1556922392000; Fri, 03 May 2019 15:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556922391; cv=none; d=google.com; s=arc-20160816; b=KMKmfWtxDRwr7awZOt4eqQ+TWiD85vugxLoill/HLzwUWDa/sVZeXmTjEkgca9MP2Q OW9nBt6dFkptu6n0JZKHjVzl28npBa63sNHMZocx6J+wlTA9gMXpCQOlexQrx1lkDCgG zanEWxTJftqnqcg94YZ7fD+dI/IdvPMrlM6XErOw/5VbPeY+xdJMQqwaTk7Bp4OJG4XA oX4Q6/VUYVBGw9492nDwOwLHSPcVBzEP85nJ0Zy+NQhOvXHxXFkpgwYlEUdcrqhaUzB2 Z8M45A7hqLOYeEVuYU5eJC3gwggRzfe26p/pbK54aTRkblSBs94QwoDI6lJVXHDn5N5M XF5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=mfp4K2wyLqvou0VkORSKLnmjS+wOeVL0yi89FQp3u48=; b=ij2Qxi2kXUHyUPCwq5dZCegWMrWDhVHJ+SKNJVapeDiDNKMVHGpRpv70yIw7JJzTVZ pAVJYvMIP32/znf3eL+FD/CdUyuQTre2XU78L4JHw5ijis9JZ6OHi/j7JQx3HwPEGVUV aEib4SWELpGKmdk8StId5uJgRIE+ed/4K83NZD++nR90IP3czgK/1hixFlY16O9JS9Yi AHixJKXIu159Q3o2PJV3ijYtFWSPUZk8ctXRl0gU9NybB1aVl+TlQEjNGZx06o2QRRkk kKg6j7/FcJjCzCNoDt3GRrSRlkcqCRcgf7yPDHKiMsX1XrDw945uGNJh67knr2uMhO7w GCWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hSCZ+yMs; 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 y23si2185885pfn.287.2019.05.03.15.26.16; Fri, 03 May 2019 15:26:31 -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=hSCZ+yMs; 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 S1727006AbfECWNU (ORCPT + 99 others); Fri, 3 May 2019 18:13:20 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40980 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfECWNU (ORCPT ); Fri, 3 May 2019 18:13:20 -0400 Received: by mail-qt1-f193.google.com with SMTP id c13so8508764qtn.8; Fri, 03 May 2019 15:13:19 -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:mime-version:content-disposition :user-agent; bh=mfp4K2wyLqvou0VkORSKLnmjS+wOeVL0yi89FQp3u48=; b=hSCZ+yMsnu6RQDJMtD/li/6sNmzj+3PDUXLySbQREbxOPFMJNIBKxUH+8XmkesAbZu 7/oSKnCn3jwK9xlX/HYITipnFGs/nmb8T0OVTMlUe+lBqg8r8cQZ97NGgYBXe8vU0Uys 2DpqeU9/KEQ0+EJnXLPQOHZlaQtcUMd3WuDbCdFPkjyXlAc+QaVFEW0o8UTN9LGBiRAA PfM9apyQr2JTonNA+oyBCwJZgr38gwtOy7HMclS12iLYwcTObQYvE2CQYXkuv7qhRbCY IuEWBv/12BxYlWkxGaWfuAkAkrDFUeI52iU3BtNEbJBBfAao9dAfE7EbUwm6v9LUN8xp Ns3A== 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:mime-version :content-disposition:user-agent; bh=mfp4K2wyLqvou0VkORSKLnmjS+wOeVL0yi89FQp3u48=; b=U8zocwrsfUWD590vJL5VInOyLbNl7neE87D4DV44Y78KSLTlORXGig40lsvgKqyXrI 9GfYtJuMpcL2mS/t168apSC1ZYptcms57HAlY+RcomziJVCWHzTFLzQOgxiPnvn27iAU GfNrvfCfnAW5aYHS5UuWymKNM212aCtbXZfpdK74ha3qaEwTF9QX5dUtouKJBYTC+dA3 dy1YOhGE+5Lc5MXSVO7c/9qj9hlrRyYoy8/qbfZ+K8fjbS+dmBZxs2TJVOyFB+VaX2Wc qQbKwxgZSelWip03C+7AcVWOyVjI5+XaW2an1VvQN4w3MJEZj2LbB4bvrkuFD8jZRIqU 1FdQ== X-Gm-Message-State: APjAAAV4jPGOkOeeeYtqq3wNgtJpqFLCTH1nyXf98FAvrOHbVXJvINyX Mho1MWc8ey3lk3eRTTvgzog= X-Received: by 2002:ac8:74cd:: with SMTP id j13mr10568148qtr.385.1556921599506; Fri, 03 May 2019 15:13:19 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id v57sm3221643qtc.10.2019.05.03.15.13.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 03 May 2019 15:13:17 -0700 (PDT) Date: Fri, 3 May 2019 19:13:06 -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 0/4] staging: iio: ad7150: improve driver readability Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset solves readability issues in AD7150 code, such as clarify register and mask definition, fashion improvement of mask uses, reduce tedious operation and useless comments. Melissa Wen (4): staging: iio: ad7150: organize registers definition staging: iio: ad7150: use FIELD_GET and GENMASK staging: iio: ad7150: simplify i2c SMBus return treatment staging: iio: ad7150: clean up of comments drivers/staging/iio/cdc/ad7150.c | 102 ++++++++++++++----------------- 1 file changed, 47 insertions(+), 55 deletions(-) -- 2.20.1