Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3971200rdh; Fri, 29 Sep 2023 07:40:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1QubTgsP+tXivRQsxwPptabSJyOBjDX5LxhwSY1FxYLEa9lJASOvFzhy3GF3oEO21+dG4 X-Received: by 2002:a05:6870:c588:b0:1d5:a17e:f62 with SMTP id ba8-20020a056870c58800b001d5a17e0f62mr4700499oab.24.1695998446698; Fri, 29 Sep 2023 07:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695998446; cv=none; d=google.com; s=arc-20160816; b=wXqmGj9wx/+rihZJqiyg8p6pBC7NnJ4CNbMytJNHy2xCO8B84wQpVqxMPnMR/0RPar kMNSW2SZ6yhvQE1TNWbPjKfsbg535j+UoX3SZFVjI3gG0gwZ3FF3oZWQBxpzfHmHcUuE vk9g5LbKdvOAlyYH2mUsqgpSw72jGkoof0pOSlma+jg5NfIXU92FmgLIuoLgZVqU+Khy PFsfX5PBfm4dGPhl92aFpThvIFXnxO0e5vkWjDr3cCsglr5oQi1nSEKtfBn6xUeI1w0M SbNa6tPPI9YcPS9QprzM1foCEQ5funOlMLFXO6LYEqZ0YeUj/hO7eXEES5Q0881JzbXv BJRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=0xBYq7tovBpuN8268dZ6AaRHjvppaKAFIMoBZXk9z0A=; fh=QW2kgLOLqwUg8ehOKpDFmjWt9ovs2pSJXM6sgn44CFM=; b=IgYq+u1DEbK7ETI9KM7iBPagK2GwBxskmPlqCHYXrKVmwwXx7YahvJSvhpKpjPVG+n lOI2mWsIiWVTv3BxFCZovhirvRpqoScApom1UsEgDHhH3QZLeOrQ6AIP67bx9y+FHi+5 PaNOE9QUkttN8ej+nFZMyVnNQ/Nfw9005lcAAe2V7Muy4XwMzMqEfBrSJM2t75FdFBpL KhDRlFBcH2lkD4d+blWj78Robxp/0rWJEkE1yMHU25KXVcPIN+Kw1aV/0i4ohMW6mB+4 pvIwVbpINyBtsrjaWR0qnbwble//lXHhOs+3gFg9o9k0Y0uQUpWfDxU+OwudCPuQP/v7 9QXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVH9jRgu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x5-20020a654145000000b00578afd89ba6si16936801pgp.457.2023.09.29.07.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 07:40:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVH9jRgu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 304AC808652D; Fri, 29 Sep 2023 07:26:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233410AbjI2O0X (ORCPT + 99 others); Fri, 29 Sep 2023 10:26:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjI2O0W (ORCPT ); Fri, 29 Sep 2023 10:26:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C3E1A4; Fri, 29 Sep 2023 07:26:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72D45C433C8; Fri, 29 Sep 2023 14:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695997579; bh=Zw7LkgQ/jKyOg203queN+Fkkg1u+kROALg4WtGtfvCc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EVH9jRguqswD55Xh3REVy5atRnfNRD7jy5K3A6PMZ2hwYDtVBPPrx22APc/fen2e5 lZ8X3uPC6B8R71sKQO0GOiu+fr96b0gCpYCuOG3nmtD2fnI5teqJD/+EC7Ak1LjoLi 6FcuZPfAuguQwCQsYWJIHGEuhfXqESB0aFarjt4bKyAKO0VmFaax8czh4pxKw8goDm efEd/jlZnA6/HQyYQ9otdA5xmZ2gZgQBXvQcXdix75pslsI8aWwrxEEwOen6fAZpEK AEKSM0k4vOdnbdkAtJNCzNVVyQUH6Dq0hNzBf0jBtM8JKbd8x/WMw1MxkRNDZhcPYK L5FBjWmvbtg4g== From: Mark Brown Date: Fri, 29 Sep 2023 16:26:05 +0200 Subject: [PATCH 1/4] clk: versaclock3: Remove redundant _is_writeable() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230929-clk-maple-versaclk-v1-1-24dd5b3d8689@kernel.org> References: <20230929-clk-maple-versaclk-v1-0-24dd5b3d8689@kernel.org> In-Reply-To: <20230929-clk-maple-versaclk-v1-0-24dd5b3d8689@kernel.org> To: Michael Turquette , Stephen Boyd , Luca Ceresoli , Alex Helms Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1042; i=broonie@kernel.org; h=from:subject:message-id; bh=Zw7LkgQ/jKyOg203queN+Fkkg1u+kROALg4WtGtfvCc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlFt6F7PaipmJ69d/cW/ps7RCYA6xxUmTpTT6T4 d+4P6XyfryJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRbehQAKCRAk1otyXVSH 0POhB/9KpT0m755dGN/X1/7bXWbyfTwS4nPkXjX8GlPt9lmLuyvpurVy6QnVnn/beGfUanJKlY5 nQodCL8Y0nH2eHq9oBl216ODJznp+p5Z7KohuuGVkdEghB+tWUyDtC7sI2PQSjzPcpwsxIxO0V8 GzTG/7Ogxa0WFUxK1AtSb+ruFt2jLWkAvtfKiW9dtO97j0sCm00M+c8B18OAC2gVSLZuoZdg8/c R32MJodHAJFAeTuaGMUf3ex5G3AHq0kcJZS5zcSxBwgHa2wV9WNAy45Hg7Ltg1YHs2W7/kiaxwd bLO3VUgSDgPjO7jI1WjSRhMut2c1VlKSmDsDbfobn5BhKe/Q X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 29 Sep 2023 07:26:44 -0700 (PDT) The versaclock3 driver provides an _is_writeable() function which returns true for all registers. This is the default assumption for regmaps so we can remove the function for a very minor improvement in performance and code size. Signed-off-by: Mark Brown --- drivers/clk/clk-versaclock3.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/clk-versaclock3.c b/drivers/clk/clk-versaclock3.c index 7ab2447bd203..a5ab48ff242c 100644 --- a/drivers/clk/clk-versaclock3.c +++ b/drivers/clk/clk-versaclock3.c @@ -586,17 +586,11 @@ static const struct clk_ops vc3_clk_mux_ops = { .get_parent = vc3_clk_mux_get_parent, }; -static bool vc3_regmap_is_writeable(struct device *dev, unsigned int reg) -{ - return true; -} - static const struct regmap_config vc3_regmap_config = { .reg_bits = 8, .val_bits = 8, .cache_type = REGCACHE_RBTREE, .max_register = 0x24, - .writeable_reg = vc3_regmap_is_writeable, }; static struct vc3_hw_data clk_div[5]; -- 2.39.2