Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1794382img; Sat, 23 Mar 2019 12:22:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXSI5/PwhfjfWb7sxSfcl4u+AdPTPVW0XdGuDMulhSvrd3ZdLUwM8G8YOXSBkVYwm+ZC94 X-Received: by 2002:a62:20d2:: with SMTP id m79mr16265098pfj.135.1553368961325; Sat, 23 Mar 2019 12:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553368961; cv=none; d=google.com; s=arc-20160816; b=OrOB3cNcFCZypZ5qBI5rTyjZ1G65XYM1bY2FDtljJyz++uXtryvbd7BnWRugo8tUAz WKzMJQy49W+qvTvh25S0WFHeK2J7YTZiTOBhEo/x0eCQALO5Ix7TW3yPsRFhTVQ6xyUU G2vMPiGttIJGnHD3aAS9lbeIyFi/IY9oeWv/6QHDbsv40a2kiA65lvCtNP2PzSeW2MAv u118U+tVIiQzbrwFZ+uG+fO9fmLOZ/EpNGhCBW7EwGBjTvauvH+LD8M4VTM8xHBDHscM 3PlyefQpSNG5CpulEJjDxkbAF4HwnPOOH/GnwTYQyDumgsiI14Mnz5+HSCyXKXnJJ75L 7ZJQ== 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=kblbWvCyq1UZrHknp/mh7+F4dSszEzTXTDTT5S5waO4=; b=Cl8JGrTr/Z93x6vo2BG/0BQFl+rjJWwIR2bb+p0IIsnqfidBci0hWQY/eHlgyhuVku HeieilCpKU0jISIxe5Ai0g3ZyHXTU/DESPwt8iM34ZvJYaE1mSxc8L/6kmyMOx9Nn1nq oyGHlel9ZCv0Hu5VFFSG5PzFs2wcuCd34sNmDW3jmkzFiytfy0X3pz+lHLIHpd11Udxh zvdtGu629xwUGian/5jgBz+Vj/ss/lvqePS9mZao122YxZkky45sYCl6eNtsDfdL/BkE a7b7NZKcyRYUiVuWoBIrQfJeAh9BmGLHCnc2ORTyyFUOA/M9LAqhhmGJgaSeOyV2QmcG fZag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TrHcvgGr; 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 j21si9917281pll.271.2019.03.23.12.22.26; Sat, 23 Mar 2019 12:22:41 -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=TrHcvgGr; 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 S1727868AbfCWTVo (ORCPT + 99 others); Sat, 23 Mar 2019 15:21:44 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55582 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbfCWTVn (ORCPT ); Sat, 23 Mar 2019 15:21:43 -0400 Received: by mail-wm1-f68.google.com with SMTP id o25so5125105wmf.5; Sat, 23 Mar 2019 12:21:41 -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=kblbWvCyq1UZrHknp/mh7+F4dSszEzTXTDTT5S5waO4=; b=TrHcvgGrgPB7qkt3XaSDn58liqYHKpUrUDPrmgGDZNhEtmiUPvAS5cE0eO8wOkqyg5 4oYuHAqg6R4mLLSaR8OIZTAAJRL+TRvfMrrBD97bYnEwy5C209X2lqrtPpql+IPMQlZz ro69iQaRA91rjEFmQ/ut0y9PpAlfaLRmdXhZHFs181StPR/Ra9aLkYuXE2Ts+zVieOdW bMqEgR7qubGzWO4A1b6PYayS5M2AD8pwsE9HfVm+FX5LE+lmqdqBvKjsN8EFP+Ca1lP0 Gx6m3OpBW1bxx7Sguk0CiT/ejkuyEXMQ4znYbDPmakK8yyySiC0dv9fGyaHwRsERLyr1 tUFA== 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=kblbWvCyq1UZrHknp/mh7+F4dSszEzTXTDTT5S5waO4=; b=MaXVZs+R7ZJlzAy8AYdk0TYUrYDwLBQv+fmy4kJoFuhzrEIP99jidM3hV3pkHslBOR kY2q+bUkywbdudY7PUbiSPM2UPgNM1d7SOIbaZ5OJV2nmpw2At/UVtKVc21yGcC5j4/E Eap3AG8Zrk+DYdkR8VQz4Jj0N//FhBffkjL0qqXsiRlA4q+eDrw19eDBY+8c9HSEX+eT V4PXknnD/nXFdz0QE43KNSZnVnLNTHsyoKXvA5Y5qOn2yrnTPvrOlt4a/nlbHea147QE X2G8E++vnEfRnb+cd3m7yva4GZojeG0+1bM0rPJqUipyUGmevsSv9zd77eWLuTx8/Alj r9UA== X-Gm-Message-State: APjAAAVbyakh5XKZvCnF2nv5jiAyJ0tkXXNv78n7JipxFBBhwBDzSZC6 J6GjdbeU/jMOIoLNB+mn5V8= X-Received: by 2002:a1c:1a53:: with SMTP id a80mr6859687wma.15.1553368901136; Sat, 23 Mar 2019 12:21:41 -0700 (PDT) Received: from peano ([87.19.116.42]) by smtp.gmail.com with ESMTPSA id r12sm18259628wrr.71.2019.03.23.12.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 12:21:40 -0700 (PDT) Date: Sat, 23 Mar 2019 20:21:39 +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 v2 2/5] staging: iio: adc: Converted bool to bitfield format Message-ID: <93b82557f3610f4bf4d09d0556e502b418376420.1553366098.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 --- The strange thing is that this struct seems not populated using a DTS binding function. --- drivers/staging/iio/adc/ad7192.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/iio/adc/ad7192.h b/drivers/staging/iio/adc/ad7192.h index 7433a43..87891ba 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; +} __attribute__((__packed__)); #endif /* IIO_ADC_AD7192_H_ */ -- 2.7.4