Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2501508img; Sun, 24 Mar 2019 10:24:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoJaFixN51DnZEftfWuw78eFAe4Ouk7cfT/sX7TsMGdGMYSaQuh3TM5bH3e7jSU51C+/hg X-Received: by 2002:a17:902:a511:: with SMTP id s17mr20468477plq.262.1553448255597; Sun, 24 Mar 2019 10:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553448255; cv=none; d=google.com; s=arc-20160816; b=RP9+f5nH7to/ucULat6l8Y5po5sJPTEGX/jZ0FUkKo1nI1TGyaAfnwbtBX2CJsss+C GCp0WSMGNZI8/0wJRV8eFai5gfB50BOviapWJIa6B1tvByMMaq6xqc6xNmXV7tUcbx8o YDU2wqjfg94vT/5iOkOyOjEPJIt+b1tAUGZSDxnpgYwwTQjIVZLpY7YQxlQq4OZ8ZkEl wp6tGDcDQeK6TpRLlH6SWoEmdVK2Cltklfua3dN+2t4KvkhSDMPgrpCuhVRxdu+9yd3v uykgU1V5KaY4saCP3WZRghFf6Vt+hCBUgtH3Pmdnmo+9dP1fPa7yIVLJ2eNHzPkG6Hfn R2eA== 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=le4hwhU5UoKaxHO08LbNwF83in7BMskVDQEq5Hh35h4=; b=LIVTptXoW1VvpCND/Z7RlUfWK8sosnlG3JOEcNdaiZihgUkbEUyeGVZg5cE/UVnLI6 VFHAhYvLYd9E/WbEBUQCvO6e3N0Xf3Iv0+B4f1UNgz+//i8oAC0pYAhKHKnPQIo+vqdY D0D+TDn0PK00ItYsNgQ3EITGE2eJNDVVAwvPz2QYL+BKIuAvvtSoRf74lw9G+fjLD97B gf5G8KR/fXQ1jTYAoWYpGGubreEFCGOjPfzV1TP/HFk98aKy/B5FtqrMmKyhGvS2RRVQ CtOTg8nW8kyncDTiuiKzZYO6NePa1hH/1gdcScgTL02B2tb4na/ACQHPGv7npSIa5/pw B/1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rlp30LAu; 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 r25si11241976pfd.91.2019.03.24.10.24.00; Sun, 24 Mar 2019 10:24:15 -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=rlp30LAu; 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 S1729000AbfCXRXS (ORCPT + 99 others); Sun, 24 Mar 2019 13:23:18 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36392 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728948AbfCXRXP (ORCPT ); Sun, 24 Mar 2019 13:23:15 -0400 Received: by mail-wr1-f66.google.com with SMTP id y13so7528401wrd.3; Sun, 24 Mar 2019 10:23:13 -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=le4hwhU5UoKaxHO08LbNwF83in7BMskVDQEq5Hh35h4=; b=rlp30LAu0l9GhXqbcK80yYUdVkOjrlhBoyDI+69uA/VPgkmLklynYTw34INX62vaJV kOJol7TTifhveiq7K52099zDLmJ1H65TIbw/wfb1xyZRGTWdHMxOghVQbHGxsngibOtA IRQ9iNUrQGfpKNuxLAxaS7nJ1SXELzLTZ+uy/GWAa2hD1Yz24vO2SG+z5PfWVtYsH+Pk Xe38acs0vmI6ms6UgQ57Gq7Ss//fMcAhmyd54D7yNMXSu0M2bRrHGLg/MC4NsnPnLATs +HGwpyUDmYlCJHZJMeT4vTU+oRdWrsK2sp/AWmBTYiDZu2xSHdNtibUThYQ4JM4dJZsA 5Rkw== 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=le4hwhU5UoKaxHO08LbNwF83in7BMskVDQEq5Hh35h4=; b=lLUufmffaRiutYG8OeztHP4bhJdwyGLfAAgf7zd1hGPEXL9ctwSqeTMZBBMa/QpSg7 HCs/1F+rAuEG6en9lslJnhk+STcunlXoZJYThNxnd1IX8zAfQc9OrhU3gEX1oUm3ujFQ s7Cix0FElMCR7ABnSopUu86QN51N0P0m0wGZqAJDHF3tc/bkkNxdWI652Wh/ui5jiDL8 e9xvH5T+cLfnMhMx4eAbqXTDIM2N00EiAhmApYcZXzCPL5kRXrUF9DTLYA9U/bLlMZsP XzTnU99fAYk0606TeB1j/5rerehsTakMrLvPH/SitySfqUlMq2IdttJcBFZ3RZ6ARaPb nrBw== X-Gm-Message-State: APjAAAX3HVY14++zI7lA48Yy4Hl/ZFZ4tiQM3ccWFb/uKXBqeADf1fJ5 1mWk472ebP7m52MAdK9dZ8w= X-Received: by 2002:adf:eb89:: with SMTP id t9mr12557703wrn.21.1553448192886; Sun, 24 Mar 2019 10:23:12 -0700 (PDT) Received: from peano ([87.19.116.42]) by smtp.gmail.com with ESMTPSA id y5sm11964759wrw.23.2019.03.24.10.23.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 10:23:12 -0700 (PDT) Date: Sun, 24 Mar 2019 18:23:11 +0100 From: Cristian Sicilia To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/5] staging: iio: adc: ad7192: Converted bool to bitfield format Message-ID: <1d0e1d2c7011bfd2d20e8dd728256bf245861a8e.1553447138.git.sicilia.cristian@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changed bool format to bitfield format to save space. Signed-off-by: Cristian Sicilia --- drivers/staging/iio/adc/ad7192.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/iio/adc/ad7192.h b/drivers/staging/iio/adc/ad7192.h index 7433a43..9c1d223 100644 --- a/drivers/staging/iio/adc/ad7192.h +++ b/drivers/staging/iio/adc/ad7192.h @@ -35,13 +35,13 @@ struct ad7192_platform_data { u16 vref_mv; u8 clock_source_sel; u32 ext_clk_hz; - bool refin2_en; - bool rej60_en; - bool sinc3_en; - bool chop_en; - bool buf_en; - bool unipolar_en; - bool burnout_curr_en; + u8 refin2_en:1; + u8 rej60_en:1; + u8 sinc3_en:1; + u8 chop_en:1; + u8 buf_en:1; + u8 unipolar_en:1; + u8 burnout_curr_en:1; }; #endif /* IIO_ADC_AD7192_H_ */ -- 2.7.4