From patchwork Wed Feb 10 02:46:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 8268261 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 41701BEEE5 for ; Wed, 10 Feb 2016 02:49:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 695072026C for ; Wed, 10 Feb 2016 02:49:20 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 262042027D for ; Wed, 10 Feb 2016 02:49:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 247882655A6; Wed, 10 Feb 2016 03:49:18 +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 B5477261785; Wed, 10 Feb 2016 03:47:38 +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 8FA23261785; Wed, 10 Feb 2016 03:47:37 +0100 (CET) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id 278862652F8 for ; Wed, 10 Feb 2016 03:46:25 +0100 (CET) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 10 Feb 2016 11:46:24 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id C5EF9601BE; Wed, 10 Feb 2016 11:46:24 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id ACC3E1806F; Wed, 10 Feb 2016 11:46:24 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id A4F9D1800A; Wed, 10 Feb 2016 11:46:24 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id MAF28189; Wed, 10 Feb 2016 11:46:24 +0900 X-IronPort-AV: E=Sophos;i="5.22,424,1449500400"; d="scan'";a="204066571" Received: from mail-hk2apc01lp0211.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.211]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Feb 2016 11:46:24 +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=wFs34r1CCO0CRa9/7Ix7HyDEq1nJBnInRVh7TwjakFU=; b=hSz0qwcqu4fY7ot8+PDEGL6TWWOZDKX3P1epcc7KgqwlevG6Hdfe3AakxlVLIHqpDl54+27sLlYkY5RU2N8UGCTiJXWEGzDwawlpFWu+CdyearTK8eUhh5S/eho/Qjl5lhWeiUzFKpUWHDlo6ZrikL9jTEbngv0EL6XxGivU/go= 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 HKXPR06MB1015.apcprd06.prod.outlook.com (10.161.180.156) with Microsoft SMTP Server (TLS) id 15.1.403.16; Wed, 10 Feb 2016 02:46:23 +0000 Message-ID: <87si11s2us.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:46:23 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0019.jpnprd01.prod.outlook.com (25.161.131.157) To HKXPR06MB1015.apcprd06.prod.outlook.com (25.161.180.156) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1015; 2:KlIkslmb+dzBuIgQa5EqPbA1L4AGavdqwyVsPlc1f2/+VXHdYaN2bxBEAAtWQFH4zD/GszeGGnUaIIfVfhsbtRkeZftBwcEvnvmE54EahUnEQXsAuusaC8qr6bDIJlL32uROO58T4wzpSxrRIW4Lrg==; 3:+CJ6dD/hktjBZiC9z3UrtbKMt9wtlVcY9cIKSwVrrY86PwbN3m+WVjAuNCoS55bWS+BAZiPxHKxS6yCNaGvvnGs5WphLxSHhkZqflWrVTwqERBPaZqiDbXJGUgsp+d3T; 25:BdTzv5hdc5JcboLIc9bH9LVS6OtlK1ik44e0VvcksY8PVb7HbEeBlCINiJSL8ujpcJ2cghKWCmRDwnMqHTIDupFIfrSstzFNleNiukrErc3E9ABWdxPotkluPe61NPLf818ZV8UzyXHk8YYj052yZW1qTuknHRB/c7kbDbTMXa3FeogLZoSv3CZjTb2vz8LVZftM/keaeaAG+8KAEuEE316JkQntHOdLamJhTMG0uqV7McCLCf+wZQTX3PzK5UvzyByO5VPPTVA4IB67+B+9QHnxToqWnplNHSw9ocHH+zz6OIlr5tnztffwwnIghUz1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1015; X-MS-Office365-Filtering-Correlation-Id: d86d3566-f590-439a-61b7-08d331c45d1a X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1015; 20:x2pGhdx8wJcemeSRabGKtYaoiK0zYoWKHsSo4gr8u6bfqPkJ7XcVrRG1p3iBCSpItO7BdWQE4dGHcAM3L17oM6bwMSu2cYeLrypTO/fUvR8z+6vuSsmjqzyt62AWD0gQseTJ8Nc80mDrJCYTwz2pJRtIk4OKoKcSnaDlHbakydZWzpQW2XDfLuWIDYJxUyyAWE7YkWTX+In48fzO42IaUV/lnZgverPTVeXsUkDZBlEP0aWX6WVApKX4Z9p3vk7EW3CCS6xMafHI1kyz2hdIXv5rQNrp9pNIi8BMIWjcQ/Ozmv97i8CEhmxw/QreGYz3rvTkFZ5P+uThHf4V2S5V6CyIl2Xpe/L/r8nS8z5eFJsLvD5ICwgZSSmb6OqtJ9zy8bMKMFlVo46IufldOh6YML/gjuBqNM1WtMfoF+Er2LiudnqgHtJtlIE8dEzyupcA2Rplzf0h2FxEV8n47KFNglE+B4MZnGtVz8hafKUikXif5OgvAYfQCWMosFYMVKjr; 4:ap31NFMvjjdzYdHv/b0zQv+HOTOOXf2ZiuWLE2+bGbgUYmIEv238U1TBPfl+/a1MHr4XFW4zkWKXppZaxGg/xO8CBf0DjFUO6paMaM5aD6rMxebncZyUw8/4LPXm2rIJN4QPnpzyD6q87YoIQ/Kz6YPeEBcYF5j0btgqOz1UBkCuczLTPfWKYHYYLXXOzxaLewJY+jXyT01r/z+pySQgtBPkq06nzKSsxFhLK/PJJJaI5xWK2udSbsRScXUq3xCbF7LFqI7AymYC/holaf7O9o9rcJyNqxA1zO0xBiJS4J1fCBIreCq5gIIDTq1KK8yv6GyzFMJVAvWpL7yPGhlNs0J1wBHJ+Ah0lfleQPmU+UpztHS3FjKaqICUdTDfbi74 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:HKXPR06MB1015; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB1015; X-Forefront-PRVS: 0848C1A6AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(83506001)(5001770100001)(77096005)(46406003)(36756003)(2906002)(23726003)(19580405001)(50466002)(50986999)(586003)(4001350100001)(76176999)(54356999)(189998001)(92566002)(19580395003)(86362001)(1096002)(4326007)(6116002)(3846002)(5001960100002)(47776003)(33646002)(2950100001)(5004730100002)(229853001)(53416004)(40100003)(66066001)(42186005)(87976001)(122386002)(5008740100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB1015; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB1015; 23:DJQPtvETK/7UoB0cAU1kQErMpd1B38M+W1oMyBfEX?= =?us-ascii?Q?7Ad8ytUaICC2FzLaDR9wAGUMJDREUfOsK0qApF4oELquRYrXToU6EvAtAW5P?= =?us-ascii?Q?4ccItJe9T2ueF6HcJw+fWrBq8XXRow0Cwsylk57GAtkfjX/rEXKK2QeDaBtk?= =?us-ascii?Q?LOxMnsUmruwZRTGTP2P9DWwG3po4AiIHrJgZsj6qH1X04pELRAfvEoA9fqKp?= =?us-ascii?Q?U6gwPeNK8pNmxCra7gTN3dEeLv/z1D9jjuVLlRs7SJVGSJGNbxsOWviqFWAp?= =?us-ascii?Q?De1qM1lnAAILc9CqE6mm7AecP0RiNtLSYD6Mchz/EhPCtUHPOchG5L/lNFgW?= =?us-ascii?Q?ubhl3rCsI4v2wXwPulL/ejmJyTfiL/csv+uCsJCVTHBt0y9nBbic+AbZBQk5?= =?us-ascii?Q?kOvH+dVbNA8qTeQAqJLxpA+A/ZP6/pLIh9VCpXMHxwLjkl+aUSZS70b6zaQg?= =?us-ascii?Q?hPhx+FlRIGy1D3WF0nSK4xglVe3ntdTMv4SWlR8mzR/cbXXVnSU1MURw9GHx?= =?us-ascii?Q?pyR2hj5Z4hMB7bhe+I1pmS+nTNg2WvMPogycG1FppFdBDOsuduPndd8cZhmR?= =?us-ascii?Q?BTLygFST9O+pPoPLV8c4R/CnxRFIf/t3LVpT5ycLsrhvQuYNwPzBxddGEAi9?= =?us-ascii?Q?Nk03fF40hKCbUXz28jySwlhjBqntK3NcD/INeCGg45rZAafM8MsRvrBtW1Dq?= =?us-ascii?Q?6Wjm+jL4j96bO8qpvjjn9NW5ZTc7HGts3oJR3jCLHeqvIi+ngK9R+uVo73fA?= =?us-ascii?Q?6CursumKWcP15tZB25QMyMkELuqHUqErvdrzrr2EHIGbDf8sd83OkJCdBV3x?= =?us-ascii?Q?8fSG4BCWmbEeJdpLxsHx9EuFDljEHer/VyTQ8kgRQXXehFCPu496DAB3MfFi?= =?us-ascii?Q?3aB8vHvjYeltzGIMjs5Ef36wsA8OFteD2cSJmd9wq5TdPW5tYsQiIdfIKitK?= =?us-ascii?Q?UitbdaqrQZ+lCmueTfdi4cpO9XBjyw0KZj+yR4DxOL2SPr6d7Ixh8CpEMaBV?= =?us-ascii?Q?JY=3D?= X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1015; 5:b8WH+Kb1no4NMTV522YVAT32SSKzAghr0t7KNFa4yqlJXjkOCBcWt/+UW8dukJAcYVto4zq6qRNGVUVjqvGw/w0c/Ok5A2p30pp29iSMq1d0zQl9XeK9zqkAVrMIYBDKRWM7Oq+H2BbSL9DSNIvFGw==; 24:z5RWVSZhTxtiQKgHmtCBht0AvsWcFghPz/XBcX7+c755wuFp00wTXS8YFH7w5vEESIqKYV/51m3xBrxiWw+QlIrPC/x6YoYTc9tAHveuGxU=; 20:YqP74jqnjUfRkmK2s4+ghxBx7caeURPLHFWE+PTVaKhQJYzp2BebE9An+Tuw0gV0LBBjP01ig9ihKphS04X4mhX4hHL3jzEQI5SY04Un4HbMUKBsLggqBgcbcp0EFckhp4MPo398GicP+zJDeIjegp3qyBuYTc25efRGNjhLKF0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2016 02:46:23.0982 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1015 Cc: Linux-ALSA , Linux-Kernel Subject: [alsa-devel] [PATCH 6/7][RFC] regmpa: remove regmap_write_bits() 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 We can use _force_ write by regmap_raw_update_bits() option. Let's remove unused regmap_write_bits() Signed-off-by: Kuninori Morimoto --- drivers/base/regmap/regmap.c | 23 ----------------------- include/linux/regmap.h | 9 --------- 2 files changed, 32 deletions(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 1b5c6e2..289a10e 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -2682,29 +2682,6 @@ int regmap_raw_update_bits(struct regmap *map, unsigned int reg, } EXPORT_SYMBOL_GPL(regmap_raw_update_bits); -/** - * regmap_write_bits: Perform a read/modify/write cycle on the register map - * - * @map: Register map to update - * @reg: Register to update - * @mask: Bitmask to change - * @val: New value for bitmask - * - * Returns zero for success, a negative number on error. - */ -int regmap_write_bits(struct regmap *map, unsigned int reg, - unsigned int mask, unsigned int val) -{ - int ret; - - map->lock(map->lock_arg); - ret = _regmap_update_bits(map, reg, mask, val, NULL, true); - map->unlock(map->lock_arg); - - return ret; -} -EXPORT_SYMBOL_GPL(regmap_write_bits); - void regmap_async_complete_cb(struct regmap_async *async, int ret) { struct regmap *map = async->map; diff --git a/include/linux/regmap.h b/include/linux/regmap.h index eebee95..7724c21 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -721,8 +721,6 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, int regmap_raw_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change, bool async, bool force); -int regmap_write_bits(struct regmap *map, unsigned int reg, - unsigned int mask, unsigned int val); int regmap_get_val_bytes(struct regmap *map); int regmap_get_max_register(struct regmap *map); int regmap_get_reg_stride(struct regmap *map); @@ -966,13 +964,6 @@ static inline int regmap_raw_update_bits(struct regmap *map, unsigned int reg, return -EINVAL; } -static inline int regmap_write_bits(struct regmap *map, unsigned int reg, - unsigned int mask, unsigned int val) -{ - WARN_ONCE(1, "regmap API is disabled"); - return -EINVAL; -} - static inline int regmap_get_val_bytes(struct regmap *map) { WARN_ONCE(1, "regmap API is disabled");