Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2526393imu; Sun, 23 Dec 2018 01:38:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ZfgPZyt2rgrTrpSXp2HnQldnme6d1PIxdGQcJpHHxbhIoyWlKwiLYYwu1kXbMgC0MkL3Z X-Received: by 2002:a62:2292:: with SMTP id p18mr9442269pfj.9.1545557898375; Sun, 23 Dec 2018 01:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545557898; cv=none; d=google.com; s=arc-20160816; b=ejsFqr3CoSd+41R8WWJ+oc8Tv3EgIuHvNM+EwnjhPOkDEBZGZztMFcFEWVO+Hr+DtB 6xEoLP6UEKEsjjxYfeHCZyNp7C2av/iQpvDr2KU6wUQ9fQaBwVXN5yOQIfA3ojIHrFre nUSYOJ3gMtkoZ+NdmywR/+TYCENQsqb5JsdYulc+AkIFudQkYg1nTkDRQfpQ5h4IWUMw 9h+u2qV4J/FcT862R4zRPLGbP/wC+Z8wxmDPoaoF5zIGwtEaptTBZ+R/YMNjSHKiG3JD yxKl0rWvnrHpBunsJ0aUwj88OQfpeR6DnQ3GQ+XGDtLFJCzoG8Wmo7GNaQ1+xPkjoVSi NPJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=bnqYQO8FYfQi6F/3FHJMrOf2qBEBdHGC+joEM/JCZp8=; b=V+ijoeVQvpl3g6YO8kuqlUtDAO/xYFp+OcSqH5+dpcQxrs/CK/1EOyZkjF92Ajx5PA lN7WKjZEq2t27+R5gpq1S4kkBpXWvTZaQlxCCoi42olcM3bpPHsS9NkY2DbXvTriaiyh qe1iCF2IZlhnqvLB5QX7uGL7aP3nky4ii8Y4O52VotsMxZomrrEwlj4htIklPjDZy5m7 H99XpI6CJ6WBcLqjJ0KuxPYkUT6Hg4npkPedL6zfG5OvtH+lSOLdzA0y7F/tDsdfMJOT oOw72CtpEj1AXYY0YXo9eZ2HLQlDIvjQ0/SjLHz1Lv2g2PrCe/xJgaNVO4/oSs89QSa1 dHoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mGrE0qGK; 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 ba9si23202399plb.109.2018.12.23.01.38.03; Sun, 23 Dec 2018 01:38:18 -0800 (PST) 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=mGrE0qGK; 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 S2403961AbeLUX0r (ORCPT + 99 others); Fri, 21 Dec 2018 18:26:47 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:44266 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403946AbeLUX0r (ORCPT ); Fri, 21 Dec 2018 18:26:47 -0500 Received: by mail-yb1-f196.google.com with SMTP id d2so2782188ybs.11; Fri, 21 Dec 2018 15:26:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bnqYQO8FYfQi6F/3FHJMrOf2qBEBdHGC+joEM/JCZp8=; b=mGrE0qGKK+HYbhUAu4QxQ7Rwrpb0TZFqFu04mmLUk3aWYoH1Nw93OsrnQ3+VdGKx7x BqLdfiKq5NIvlNj/DeCQDoVGVJg4393qWq7JJuc8/LcH+AYkcMdJGIlI/MBXB19aotAe 3cYo/gPM+NV4DGI5Sp8YKOK7jPapqBWoi6vchUxSMjwnZi2hJ4lynqHwKX6c76Lq9STJ KUzKnkP8Ey8YNk5m8Bti+Rc956zXCzROb56akdgn8+RoVcsz6jSIerkLiy4xFgT3tHnk idILiIZyCCmFU9lHApRG8r5GhqG/ICl4kB6S5zK8NXpti9rzww83eulig9HsmsII/xOR qEkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bnqYQO8FYfQi6F/3FHJMrOf2qBEBdHGC+joEM/JCZp8=; b=XrusFl8m3JzzZSZI1yoSB3fVi/trq8+s1fl6fUGsvNJiGAPLo1YIan6dRTTZVTElHi UKEB38iQa5KAX8jGy5RXk3JVxx2GuwAZyI5pjKOyc6NjxSmTk3zOOh0C1bSyFqwEWh6C y92s1uY3LwRh1EQOaWIn2Qc05cZQLtMqidMJJJyTZxBJ8UjOv97M/SKpLbk8N2o1lznu +QPTJTRSWk0AY/DNBcTjQBC+6cDWRfzwls89S60SCpjMXGHMdqIOciF+gDiopfYq8wqA SuaHS9LlzKbgm4FzsU/t1z6RSr3XQ8vEAC9YfzBQ47jQnumS8yUePclx5+FH8CC4ware FxLQ== X-Gm-Message-State: AJcUukc+bfcnR6gh0c7vZnGR78UttyjWrNR4IM/jK9I2elsuECN11phu wOaiBwSs2KQ1kA7dMa9aXu4= X-Received: by 2002:a25:c3c3:: with SMTP id t186mr4606231ybf.337.1545434806273; Fri, 21 Dec 2018 15:26:46 -0800 (PST) Received: from localhost.localdomain ([67.191.186.148]) by smtp.googlemail.com with ESMTPSA id l140sm8011664ywe.77.2018.12.21.15.26.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Dec 2018 15:26:45 -0800 (PST) From: Amir Mahdi Ghorbanian To: lars@metafoo.de Cc: Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Amir Mahdi Ghorbanian Subject: [PATCH] Staging: iio: ad7192: replaced bool in struct Date: Fri, 21 Dec 2018 15:26:26 -0800 Message-Id: <1545434786-15220-1-git-send-email-indigoomega021@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replaced bool in struct with unsigned int bitfield to conserve space and more clearly define size of varibales Signed-off-by: Amir Mahdi Ghorbanian --- 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..7d3e62f 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; + unsigned int refin2_en : 1; + unsigned int rej60_en : 1; + unsigned int sinc3_en : 1; + unsigned int chop_en : 1; + unsigned int buf_en : 1; + unsigned int unipolar_en : 1; + unsigned int burnout_curr_en : 1; }; #endif /* IIO_ADC_AD7192_H_ */ -- 2.7.4