Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1652425ioo; Sun, 22 May 2022 23:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmfh7eYXQz2afxhZBG2AUjP8oQUnkRcfyLoEsA1Is6tOPeIFlmQR2x/QwnUyyw8r85f+RE X-Received: by 2002:a17:903:25d4:b0:160:c9ae:c7d8 with SMTP id jc20-20020a17090325d400b00160c9aec7d8mr21582758plb.85.1653285943650; Sun, 22 May 2022 23:05:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653285943; cv=pass; d=google.com; s=arc-20160816; b=VX0xZJtc09lKassqjUfWNAPG9sOY5RcPzjZu0diefzpd+akV4aarCSp3ypSeNmw9GS uGi6PCa0P2C1+sHLYM3uscRF5fbRd9NW5q1MXY8fm/RjP/8AqMEq6zgs3Medppi9XUFy t8wvuLvqeS8aOpkSHA0XYuz/0IbitLG5wVW8+Rgkz5V/ZPSd9u0VQK2CiUsOFLtBp0bk ZyzVI0pvwzpezBFh5XJ5JTI/pkDe+lEZzSe2rD1Y+c/nx+vSXKChbSwA7MEpNFgkL98l fWHL5E2rpiE2ariiRtP95k2phG0tsmhgVeCflFCIrQ7U7hXhh/vZgLrKulmb4KPZr95A gmmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:user-agent:importance :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:to:from:date:dkim-signature; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=GwzTfYWkvJcoZPQfaNC7Haeh5O9C8Jv+bKculGYQsOJy7rtHEU9nG2gIEeujIMA4Dn sU4XgO8Z7lgdyh8NvYLrKp8U7oqy+DlAC0FjtaC49ijDp3IoiwIc0x+xqv8Ah25RML0c L1avfqXCwN2rz6MSIZtsvPEZsnVOdazPai1xWnT1byaCgQlsHlcB1qjJpCdNTg/LSEtg KdfbPqMSBP/hO3ytnM4/bVhBkTQlafa06KYfs6ZPYj0XtqTlLmAevUcrXApEu34DPJ+e qheekWOI/hqu66pDuRwFjmEKQl+31GaclNc5LvBJb8IwSN9yQeVhgpQtc304phvjI32A KUkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zohomail.com header.s=zm2022 header.b=MuiXSWXa; arc=pass (i=1 spf=pass spfdomain=zohomail.com dkim=pass dkdomain=zohomail.com dmarc=pass fromdomain=zohomail.com>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zohomail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i4-20020a17090adc0400b001df6826cd3asi12239033pjv.52.2022.05.22.23.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:05:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@zohomail.com header.s=zm2022 header.b=MuiXSWXa; arc=pass (i=1 spf=pass spfdomain=zohomail.com dkim=pass dkdomain=zohomail.com dmarc=pass fromdomain=zohomail.com>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zohomail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2EE112AE16; Sun, 22 May 2022 22:57:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234435AbiEWD1w (ORCPT + 99 others); Sun, 22 May 2022 23:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbiEWD1u (ORCPT ); Sun, 22 May 2022 23:27:50 -0400 Received: from sender4-pp-o94.zoho.com (sender4-pp-o94.zoho.com [136.143.188.94]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C1931DC5; Sun, 22 May 2022 20:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653276382; cv=none; d=zohomail.com; s=zohoarc; b=fkmQofsjO+98dyFjLpGMGHm1rCncUDAyVURj/wuCa1Lwf4gfnPPWTJ4eVbyKW+T1GP1bn8lPJqJuksKgyv6s1m5bCVeY55DIqpZnA+fdVNXc0W5AIiIAK98u8YfinXmuR8RSkoGhcLi0MzAz10cd5ApLkdCLkVHGmaOIY22nk6A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653276382; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=Uf9nSk3CbEfQlRubo7rS6lacSEy/SmD9PRx31jpTNojQlCi8J9GTI+UHJE1QS3jXHPBNqOO8QmHqYGVoZ7IdlSpBV91qsNgerfOAbMA8q9LKv7wzi/Afzbc6UuqpnOPZLs+pOTRCpl0Ag+tc5UG93/xEIGSxEPUSwHvk6qhctk8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zohomail.com; spf=pass smtp.mailfrom=lchen.firstlove@zohomail.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1653276382; s=zm2022; d=zohomail.com; i=lchen.firstlove@zohomail.com; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID:Message-Id:Reply-To:Cc; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=MuiXSWXaQblyXU7N2UOjDIDgh3hROh2SwxbZzygJZAqpm9FQVDs571CiXWFBwNCn LlFwrsPCP/x3657WxjDPscduScjNo/YjyoEpFeQOBi528cGFUdUJjNJn253VRcBI+LO 3AE639LQvAyyIzj3R8aN2Og7se3E1wHPiznkfzfg= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1653276381726254.10901340424653; Sun, 22 May 2022 20:26:21 -0700 (PDT) Received: from [45.12.140.94] by mail.zoho.com with HTTP;Sun, 22 May 2022 20:26:21 -0700 (PDT) Date: Sun, 22 May 2022 20:26:21 -0700 From: Li Chen To: "Mark Brown" , "linux-kernel" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "linux-gpio" , "Linus Walleij" , "linux-arm-kernel" , "Patrice Chotard" , "linux-sunxi" , "Liam Girdwood" , "Jaroslav Kysela" , "Takashi Iwai" , "Chen-Yu Tsai" , "Jernej Skrabec" , "Samuel Holland" , "Philipp Zabel" Message-ID: <180eef39205.122d47c8260721.2430302798386025245@zohomail.com> In-Reply-To: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> References: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> Subject: [PATCH v3 0/4] Add regmap_field helpers for simple bit operations MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Feedback-ID: rr0801122609b6495b0c41cf82ced2a6ad0000f903c0e7190508f10076ffa5cdb32a023e35d13ed8b5d0ab:zu08011227bd8716150e3321602f2377d5000022b88056309117e13cdd01d78586ed1f8e0a64231e3faced36:rf0801122cc6807eb4e9570bc3e723b81f0000ff2f6e76105ff9bb52a1afb89282b1e4a8b4dd0f7d4d1861ae81fe261e2c:ZohoMail X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Li Chen This series proposes to add simple bit operations for setting, clearing and testing specific bits with regmap_field. Li Chen (4): regmap: provide regmap_field helpers for simple bit operations ASoC: sunxi: Use {regmap/regmap_field}_{set/clear}_bits helpers pinctrl: bcm: Use regmap_field_{set/clear}_bits helpers pinctrl: st: Switch to use regmap_field_test_bits Changelogs: v2: fix regmap_field_test_bits compile error in drivers/pinctrl/pinctrl-st.c v3: fix regmap_field_clear_bits and regmap_field_set_bits implementation, reported by Samuel Holland drivers/base/regmap/regmap.c | 22 ++++++++ drivers/pinctrl/bcm/pinctrl-bcm6358.c | 2 +- drivers/pinctrl/pinctrl-st.c | 23 ++++---- include/linux/regmap.h | 37 +++++++++++++ sound/soc/sunxi/sun4i-codec.c | 78 +++++++++++---------------- 5 files changed, 99 insertions(+), 63 deletions(-) -- 2.36.1