Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3296738lfo; Mon, 23 May 2022 01:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/neybnygEmS9iVfOuhXfsAj7sqXzDt4j0KBWaGJr9KRP+sVJqHqvWhgAsZEanrx7YjA7y X-Received: by 2002:a05:6a00:1582:b0:518:7aa0:d6d8 with SMTP id u2-20020a056a00158200b005187aa0d6d8mr12278293pfk.27.1653292843610; Mon, 23 May 2022 01:00:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653292843; cv=pass; d=google.com; s=arc-20160816; b=MbnvykBX8YnjK6y4rUQj6N+UpENM8qADRcJWiB6T2zvrXqW7EBS+DcsgEPR53FcRTc oNkSAcYGLj9Z1d2AgMysVEpCe6f2GAQYrBwj/rcyNgOTlWUOtv7xll+F3OQzBRYOs4xh TWfh33y6jW7qsGnHfZ3gACdcSEQe4xBbuP6eNtUsWekLnn8/WWxT0ZTDvT3+JOlo10lw 9Y0ZHIx0QcdRWcThBWzZN5gea10oGywKhOkpigO8GZdunglOFtmV5VwtHoVgOO3EhWLA 41lkdtTcLgSzFQ/rY6SmVmIg/ELukvQpjAhBoPw9zTUnqts732gP6l4XJeL0gGXoateL 8HPg== 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=/bikDoNadTZ6sMn+hHaOJW6uJ31maMd/Si31cdfcYis=; b=seBg0o9K1xIIuN9me3qQv3+sHR0hUwW3+jB8WNvX5qzJLg8cxfi+nlLqJ0Ark3WajB AWrq8TkGLjeDSRPXbrp+bZ1tIypxt98xocf6zCPXuzoyFW0bdJ4jG+PfigZmT46YSDd1 BrFzo1wq2eWV1Cae69RCuAydPkL3iPNJJRbiyrmzp5unLgfa1izjC/oAxHDbgwv5uBAT PqPTSyFtfM+rpBpD+XXPbUDbs3B9KlpQWVRtHUZ686OLqBey3KgojNQa60iP9vpiiAHB gJt1iE6Q7r9bYB6qtg6FR4Rgzc8MbyWlNoDQZo7cmDMJPY7bhcNyTc3EboQQMRuWin0o exaQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zohomail.com header.s=zm2022 header.b=E6xmZ+Eq; arc=pass (i=1 spf=pass spfdomain=zohomail.com dkim=pass dkdomain=zohomail.com dmarc=pass fromdomain=zohomail.com>); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id l19-20020a170902d35300b00153b2d1659fsi8521802plk.423.2022.05.23.01.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:00:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@zohomail.com header.s=zm2022 header.b=E6xmZ+Eq; arc=pass (i=1 spf=pass spfdomain=zohomail.com dkim=pass dkdomain=zohomail.com dmarc=pass fromdomain=zohomail.com>); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C69E6129F; Mon, 23 May 2022 00:00:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351602AbiEWCXf (ORCPT + 99 others); Sun, 22 May 2022 22:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbiEWCXa (ORCPT ); Sun, 22 May 2022 22:23:30 -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 DBEF236333; Sun, 22 May 2022 19:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653272559; cv=none; d=zohomail.com; s=zohoarc; b=iZSGIfnqE+bHAhHjujSRSO64D3YMEopKfjoLrPBx/j+pVorx4d891upzoNcpEnu/3xBxC2HtyoaFckMKe4pRLyb4Vh4ksnB3NfZBEGazgaFB3jH8bOscdV2ZeJlPm7kVlt86+Tpbt3By3rpoyr9fofm/t7ZJ9l9WG1JV6SMIja8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653272559; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=/bikDoNadTZ6sMn+hHaOJW6uJ31maMd/Si31cdfcYis=; b=mtNsFq2m9oASdzOCE4xAc8wVe9hzu6Dah2I8GNSooPeT6r89fI4FAmsLZseQzCWgbG15ICJc8bcH1ZGhjgAtMg4brjlngWGV8W2Lgbta5Ifmkz/USBHqa385FpSi+9SoN1blvMH1jqSdp1HYFy/zpMqxffCRxmU8yeOsBrxiQ1s= 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=1653272559; 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=/bikDoNadTZ6sMn+hHaOJW6uJ31maMd/Si31cdfcYis=; b=E6xmZ+EqL0V0hv93+SPFeB7j+QXdg23pFjfOgdtgg0shs5+TPxhUQhzx/BMocvLb N/wJBwinggrtDGcO2RjphCYE/nUb1AR7qG+iXBiO/yZvKEW2CTTLvn/wlg7cWYo20UZ mL4j+AjMDOkQzmvvnBpr9l9/KJkk9mOvf1kmCSyA= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1653272557856227.86815470753436; Sun, 22 May 2022 19:22:37 -0700 (PDT) Received: from [45.12.140.94] by mail.zoho.com with HTTP;Sun, 22 May 2022 19:22:37 -0700 (PDT) Date: Sun, 22 May 2022 19:22:37 -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: <180eeb93909.12110e2de60158.391061173597432851@zohomail.com> In-Reply-To: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> References: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> Subject: [PATCH v2 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: rr0801122679ddfae04c50b5b33a6dca3600004477de8be21dc9306b7d1a0f2b80457038f61e60c8282682:zu08011227d64192b8e6f9589b71d11c610000c79bf4f25f6fa4ca04288fd5a467da0b9525b5b9612b2ba4de:rf0801122c8ab4b92b865059789a955cd900009791a4b0c70d2d1d6a9c8ab15d12e8f8f7024cd3f1bb54c7d5c6c55947f8: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 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