Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp601714imk; Sun, 3 Jul 2022 04:34:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3c0as6+mNDOwxmEyVKmRp4Ho7HyGlBwCJM5os8X/gFqCzOELOBgYJmxVWfVBekfLOAVkf X-Received: by 2002:a05:6402:4306:b0:435:a1c9:4272 with SMTP id m6-20020a056402430600b00435a1c94272mr31768961edc.205.1656848040254; Sun, 03 Jul 2022 04:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656848040; cv=none; d=google.com; s=arc-20160816; b=C9bVrrFu/TEUmqL1j5jCHVMZM2Re8wFoC3Uf1drbESZQwK37vKPIcWJWV/kIEQRaSC S/8mpLz5rgHs9Lbh3gHjJ81LbfUJ2KzelECvdTaoA/T9ufIHiTGhFw45e32fgnMiCrRa G9h57XvmMzr/YdkMLA/mY6h6n7zvsDgwXLZfCQioOPJCA7XNe3sChnpqGozP7B+k0Npt mfzI7YnJEQBj9Dr4YzUvh49f0vfNaMFBIBA6O4yUNO4kV4xTErV92df6OSpSrNwp6bZ6 VxEtuPYgYf49BCGBU2tCutGsBSqH6QxAti/CQ9abtRnmGBvN/pS1QwQ4zhzTNaygLuX+ HX1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oky3YgKKfNXCQVslFZi4xoyuek1RvMVadIY0VBZTguA=; b=lGQcXZhWBRvJ1J4mk+MB4PjsRa/CBGORebPcp85nWbkHpTNxWilZ9q1e4kvvX27L6/ wbhmwk9bS+uYIMX5lt+9wgIc2s8CJzsaX+DwIdvCIkzJWc79U5bn1aBlJHq/VPUOE7nx 2yZa0Et8POqw9IrT5phB5U6oFPVh8KIVaZqd5Cc38tq3JrqtAHWkw+3EGbyJpTcDbG/c kIbuMpELywCTtx3Aj2PX4HybG9LIwMfcgPLKh/U2tDubz17RJE4wsVwn8xrwtcix8buS DpZkR0V/wk+f20N187pcoPMeRqBnNLp1PazxcDK/jiOi8xOPLC4Ri8TfKwICiTNd+Qdt K8Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lpOSvTd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a05640211cf00b004356df8591csi14949021edw.373.2022.07.03.04.33.35; Sun, 03 Jul 2022 04:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lpOSvTd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232561AbiGCLUP (ORCPT + 99 others); Sun, 3 Jul 2022 07:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbiGCLUO (ORCPT ); Sun, 3 Jul 2022 07:20:14 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7780295B5; Sun, 3 Jul 2022 04:20:13 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id v14so9469610wra.5; Sun, 03 Jul 2022 04:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oky3YgKKfNXCQVslFZi4xoyuek1RvMVadIY0VBZTguA=; b=lpOSvTd0mAYDGb//x5zEvoOwU/rHy4WR7/+BvxY2xqoMfI8LB+oT+ohMUO/f8j4qM7 dE2F9Ff12mPlOEVNc6RtRdX17AShgCaMrdY52lwQt6OU/HWDCI7qVCffL4IMxeiTWhoc 9Z76m1THTAyAmF7rQF8vdM75dnE9dk9eEOkWNpuqMFamUOGhgLiS6Ub6r8NkVq27k6bf jBYHvzhJ+om5mANoOw/RDJdv9tde7s5rRqKEp2BjxEhD+sIH5CHNUrGg9oEcEB4ONN/0 h3iTGqzA88M9vBj0zI3PNGu1sKnc9phq39Xu7fTk6fXMAQ0BRdQlCEiJF6wBHfz2YPdL JWOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oky3YgKKfNXCQVslFZi4xoyuek1RvMVadIY0VBZTguA=; b=PYHfeZlzmxTcwnY5klbft2/qUu92Arxqietl7TngcArv22Dk+G93aSmBojGrZW+XK1 rkQgMU+dSEDsk4JMR/qDDmXxHcK9ibJqTevJQwFdKIWIc15y/iOe8cFmkTSiL6XaqwHp dxVuXW+yNL0VRj8uFwOZe6FQUQsVO+BwQbiQ+PCX376hW+iYyQa1tjGkwdDYxOjvDwCg pQnUXKHw1WYEx8JRm83uTWXrBmgqadvKrit8h5HazxSTHg5mkfGT5xHDQcIE+9WudeJL N8ohMxwIQJtM2yMYMsxTEFHhE6iPs7hhAy8JYVmwX6THLyIXb2MowIKUhHtDbdlI2w8z yfFg== X-Gm-Message-State: AJIora9R/QVBxtCiRYfy7Uef+3MT+xvkvvFoAutYy8a5pPP6jgQk3n9G RIFdUtepcINv6t5s0uLCJOg= X-Received: by 2002:a05:6000:38f:b0:21b:aded:e791 with SMTP id u15-20020a056000038f00b0021badede791mr20980183wrf.225.1656847212119; Sun, 03 Jul 2022 04:20:12 -0700 (PDT) Received: from localhost (92.40.202.9.threembb.co.uk. [92.40.202.9]) by smtp.gmail.com with ESMTPSA id c8-20020a05600c0a4800b003a02f957245sm10437466wmq.26.2022.07.03.04.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 04:20:11 -0700 (PDT) From: Aidan MacDonald To: broonie@kernel.org Cc: gregkh@linuxfoundation.org, rafael@kernel.org, andy.shevchenko@gmail.com, krzk@kernel.org, m.szyprowski@samsung.com, mazziesaccount@gmail.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 01/12] regmap-irq: Convert bool bitfields to unsigned int Date: Sun, 3 Jul 2022 12:20:50 +0100 Message-Id: <20220703112101.24493-2-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20220703112101.24493-1-aidanmacdonald.0x0@gmail.com> References: <20220703112101.24493-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use 'unsigned int' for bitfields for consistency with most other kernel code. Signed-off-by: Aidan MacDonald --- drivers/base/regmap/regmap-irq.c | 2 +- include/linux/regmap.h | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c index a6db605707b0..a58b29e9c7c7 100644 --- a/drivers/base/regmap/regmap-irq.c +++ b/drivers/base/regmap/regmap-irq.c @@ -43,7 +43,7 @@ struct regmap_irq_chip_data { unsigned int irq_reg_stride; unsigned int type_reg_stride; - bool clear_status:1; + unsigned int clear_status:1; }; static int sub_irq_reg(struct regmap_irq_chip_data *data, diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 8952fa3d0d59..7c5e4a20e9cf 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1518,19 +1518,19 @@ struct regmap_irq_chip { unsigned int type_base; unsigned int *virt_reg_base; unsigned int irq_reg_stride; - bool mask_writeonly:1; - bool init_ack_masked:1; - bool mask_invert:1; - bool use_ack:1; - bool ack_invert:1; - bool clear_ack:1; - bool wake_invert:1; - bool runtime_pm:1; - bool type_invert:1; - bool type_in_mask:1; - bool clear_on_unmask:1; - bool not_fixed_stride:1; - bool status_invert:1; + unsigned int mask_writeonly:1; + unsigned int init_ack_masked:1; + unsigned int mask_invert:1; + unsigned int use_ack:1; + unsigned int ack_invert:1; + unsigned int clear_ack:1; + unsigned int wake_invert:1; + unsigned int runtime_pm:1; + unsigned int type_invert:1; + unsigned int type_in_mask:1; + unsigned int clear_on_unmask:1; + unsigned int not_fixed_stride:1; + unsigned int status_invert:1; int num_regs; -- 2.35.1