From patchwork Wed Feb 10 02:45:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 8268181 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1DF2D9F1C1 for ; Wed, 10 Feb 2016 02:48:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37B46202D1 for ; Wed, 10 Feb 2016 02:48:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 1449520270 for ; Wed, 10 Feb 2016 02:48:10 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1555D2652E6; Wed, 10 Feb 2016 03:48:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BAFBF26546A; Wed, 10 Feb 2016 03:47:06 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 44642265469; Wed, 10 Feb 2016 03:47:05 +0100 (CET) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id DCD4B26528B for ; Wed, 10 Feb 2016 03:45:28 +0100 (CET) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 10 Feb 2016 11:45:27 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 7447C44225; Wed, 10 Feb 2016 11:45:27 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 5350B8002E; Wed, 10 Feb 2016 11:45:26 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id E23AF8002D; Wed, 10 Feb 2016 11:45:26 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id MAD11623; Wed, 10 Feb 2016 11:45:26 +0900 X-IronPort-AV: E=Sophos;i="5.22,424,1449500400"; d="scan'";a="205332035" Received: from mail-pu1apc01lp0017.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.17]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Feb 2016 11:45:26 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pVs1cni1YeCEojlVhUbcOQSGgEA9QIa3hGsXW9vGf1Q=; b=YdHjutJXHhIZ13l5v0wKM+GM6kelISpL7Lt4CGj12RjaecFSq3kMAJ3l8X1HkWaAil4/tAzXSr3UOG1mLerWj30aYF7rmhOspdyYIMAXEEt3sbh5PCqxmd7CkrCqFbcnDUfCPy5Hz7y39OIngHEZmRlLA2QsnfBj5qPJ/+hJLdM= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HKXPR06MB1016.apcprd06.prod.outlook.com (10.161.181.156) with Microsoft SMTP Server (TLS) id 15.1.403.16; Wed, 10 Feb 2016 02:45:25 +0000 Message-ID: <87vb5xs2wd.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown , Greg KH In-Reply-To: <871t8lthka.wl%kuninori.morimoto.gx@renesas.com> References: <871t8lthka.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 10 Feb 2016 02:45:25 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0022.jpnprd01.prod.outlook.com (25.161.225.160) To HKXPR06MB1016.apcprd06.prod.outlook.com (25.161.181.156) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1016; 2:5G6US/WeJQ5JLqEHrkg7ha1YmxrHG1F3Xo6UQ9qu16dnRbTiHe1xhtvTolVc0T1Tdac9lF6+U71zQu4dJHRtBbFJg4k/pui5P3BRyIFAzfafqOXncXmT3d7JhJflou+hkhO6/RuRNMlM/tjdEuC2nA==; 3:Xi8+CY6KJoaJtshUW1YJQm191r2uz0zZcNkp4v9ncY2lDuqqm7oDDfZfX5vmdK/5wbBTPzC1dVRUvyhWAu5kg3b+kkbL8NKiXmcm9iZ6Nw0g2oXEwdRen+xnRQW/ZOZq; 25:NDvVeiXGL0zl9plhiWf28tJTjP3yxl/KEvmpvLbQM6whpWU3w9Pg+AtFXuWniCcIHs12WihP5ZTaebpTeye2Rp+gj6Be2udB1ujsv+rHmOi09XOFkuYWhAuQfRXifWLr/fViM8j2XMSNmWTQBZvJmgJDsDLW/TA1V161R2/GC48qp3MDIlN/Y6g/x+ql1rZBj4aA62TT8BEW+jiKZvUtbV20KdNv7oXlbuObUONyJNMT6JqiI58EwdHCBHH2Eagup0pqytxN43a3G6qygFYTwa5/V/xFF2fxRwS5GVxaDCyDk4Jm/vrOyv9+g9KDdQfs X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1016; X-MS-Office365-Filtering-Correlation-Id: 33edca38-05b6-4fd9-5a6f-08d331c43ad1 X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1016; 20:O95OY3tFsQwoL8Eh0ms91FXxVwRNZ7NkrVm+mPv6oHnWhPw8df8eNz5rT1eEN4Ic+p7b2LiuTa3wX0HkGst+9qaX2hbQI2Io6dl4zeQIQIxcFK4EYwKsl54Y2YOvUxPsRUh5O2FwXPz52BLVEDrjxA/ogoZWSkX/ZgxQOHOefUxGmJiS8RrTz4WRthkxixdPjr9GAUCUBF17oOXyDVtMU3U6vxa/DBEuyQYL3JLSp/2hxQry5X6gVSK98xs1eSo0PdCXyAmsnD3etZ7cFcj4VVaai/aYdO6qDop9pgSBFsxqGqx3xmYQP7PiHuP3DuRSxMBw8wu8YYfqVzRdDFMvZR5plcfMIgoJys7xWN7DAgdPctp69muw+blYKv+hc4caXj2MnTwG2KHa1P9uze07d759wbb2j+ACRXgOnd0aDMQdmz8cYRdCQ1+pDJVCyiu/3BrHcwbaYFcc/cYe4+TBck63pQmx0w2VA5Ck4UGWv/TKK5C4J+BRVaFuFmZcn3qk; 4:4Nkjtc6fUP2Wx+b8B1tpaSunYKLKb18rgSPBvb41fdOiHQTwI07OnJOStevLoFd7qHWUFr0KQP8h1Pw9ugt8d+ax694QzG24hos8sD3inlrDrAbwUlKvDP7i3vcVTC36ZpyLsfyNiStoC7FlnZ+yJfWo6W8bWctM6zoZVRmM2lOjvcL5tTRSvsa5NxoGBMgdQgvNKuEuPGA0iDH7hknSOs2jSYgw/YCmgGbY+XNLPIvqjIfC0LaqqvBbHORjPDbMlma3atWzI+vk5E8vPrjYgmfBoeUB6xaxtxw3qI7OIqghyZ8gWtX1Y0I9KYlSPdGtpTClXkIpijis432jRPdqtCPQmwO8mx9/cd+1rewiX/5xOLjZitDOc4GylgiAvKEc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:HKXPR06MB1016; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB1016; X-Forefront-PRVS: 0848C1A6AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(50986999)(586003)(54356999)(76176999)(19580395003)(19580405001)(189998001)(122386002)(33646002)(83506001)(86362001)(66066001)(42186005)(87976001)(77096005)(53416004)(5001770100001)(5008740100001)(5001960100002)(6116002)(229853001)(47776003)(40100003)(1096002)(46406003)(2950100001)(4326007)(2906002)(50466002)(92566002)(36756003)(3846002)(4001350100001)(23726003)(5004730100002); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB1016; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB1016; 23:SpLQDjYLEjw1Dhssi11wr2vpcZUsmVOJmCiv5j0fY?= =?us-ascii?Q?k/j7BFlGmqR8fbSihhmRvH+4n6cSqMA6ZDSEVYmwA42WzkYyTOw4HPzwG17c?= =?us-ascii?Q?GS52pxF9S+47QQmTQ9jFq/XJpDqaNKcS+BnU9zFKxpR2+6k1D6E9QVXJax7V?= =?us-ascii?Q?mSQdR2I1MrkIMKh0yaJWBB532DKrZ0E/qQLOBnf/S9CXQVewoeKxgofTd1qA?= =?us-ascii?Q?REQos0ebfaWBUokohCuUzBV94dVlhjNaNimMVwDvkZTwfR0GG4lK23ONxVsX?= =?us-ascii?Q?S8apjhUaOhwfVT2rXkOzrZUpvN4w+5VSir9fS0d90GOEDHZtqOlqLj8I89g3?= =?us-ascii?Q?rp4V1ABmsIl4DdrAQlZ+qPsBKb+lEhvG6RT9lzz2M4XNzNR05WZzD0Oe5MRP?= =?us-ascii?Q?Mipl1KJ1L9aD0arA+/pbHiohGwjQEDzEcDkyq/u7FNXlQ7X3KmuRl7j3n78g?= =?us-ascii?Q?PscyEGbFRK4/cuYENvrTZ78qTAuTz+gBFnmM3HrNmJM1lM0EuRz9WfWvgkY3?= =?us-ascii?Q?F0YntqMq5OmCZcWnDrox7J9Tzhv8pi0xF+ya9Z7qRtHa1G1Tw92do3OnVgIx?= =?us-ascii?Q?fB7+XXN0QyO9LMm7ZlM8xTAwkERg7HL9GduFkc8pSAxYCw66wAe/ns9/q71Y?= =?us-ascii?Q?zdREwvmiviFTjHhuRHsURA2fqNQtWf66JXu+/rlagzRY0eBdlAkenvKWzhk5?= =?us-ascii?Q?n805vptYTj2Q1NSz0gQTW1lSADbaH6extLACaxntNOmNyMs4+Z15eCoYmSn7?= =?us-ascii?Q?8Zxa6Ijecz8re/E+uVy5b42iwMmaCCt3V7WXXRLUucTMd0EAfWKBHCit8XVP?= =?us-ascii?Q?8GkK1QrWZCqn0VB2k8En67bjLnSWfdQ8FplvWirgOXsTTbD8+n77xKuCCdcE?= =?us-ascii?Q?02gsUwrM50W3eTsvCHw+doI2CJ3kHomI3M0jNDgS3Ht0/Z1H6d3XchTSoGXs?= =?us-ascii?Q?WFl8JbqkmZzvDfkY2stq88206C1wLnRXF5CoEoKx6PxN/dKpsGRzmhRreEZL?= =?us-ascii?Q?T0=3D?= X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1016; 5:JlklfpOS0iHRMU1e0JOScmQMQZVKvrQAhbRxb2vwh+aGT3iTpfLgaJisSx28sgYG4FB11V75Pa3j6NzKVTKR0seOL2kiCsUK0g13i9bifRvhQmV8z+8XsPK/KupmfJS4/dM+KCvjQ5G44PTtF80v1Q==; 24:fn1+ml1jiNKeteQ6frBpepK+pskNCtTwrNa40SHphikajygLRWGW8cy5yVcg5iX5Ek0aQYD99UrZbfuq8H6pe3LvXvo0lA5FzaFag5i18W8=; 20:oYTJXk5oXhbdY46mR/bhjh+T78L9If2fChJ8FbAQcR/A8lrQh6I91VYN2BUcsN6uAr2rqlFdGOYYGKYf3yvscpPu0983imCZ3q4R+VBRSUrTh1z66IH+d16bBeLH27lxooEFrrPuvmprXsbqfO2gLYWO59chaOiSRyMB3jTEoUo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2016 02:45:25.4521 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1016 Cc: Linux-ALSA , Linux-Kernel Subject: [alsa-devel] [PATCH 4/7][RFC] regmap: add regmap_field_force_xxx() functions X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- include/linux/regmap.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 687223d..befa781 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -76,8 +76,12 @@ struct reg_sequence { #define regmap_field_write(field, val) \ _regmap_field_write(field, val, NULL, false, false) +#define regmap_field_force_write(field, val) \ + _regmap_field_write(field, val, NULL, false, true) #define regmap_field_update_bits(field, mask, val)\ _regmap_field_update_bits(field, mask, val, NULL, false, false) +#define regmap_field_force_update_bits(field, mask, val) \ + _regmap_field_update_bits(field, mask, val, NULL, false, true) #define regmap_fields_write(field, id, val)\ _regmap_fields_write(field, id, val, NULL, false, false)