Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1620363imm; Tue, 22 May 2018 06:56:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp2hC08be4btL9xz0+HjL/gO70YKRwPWWTn1Vic79psFBKN+GSdWWol67wS4gvzBteRN80R X-Received: by 2002:a17:902:b490:: with SMTP id y16-v6mr24594231plr.92.1526997409243; Tue, 22 May 2018 06:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526997409; cv=none; d=google.com; s=arc-20160816; b=qHkVvvNU0viiJcFIUFOoZ18kJpgzLfcEBLY79Foox2JKIGF0NlXo+NtPso7U3ELqcA O+R0owY4KrE4C5K3pI7UawEA0Ab/lNI6dVpdb6Ae09vPNoRythq0i4FLHUJfxWL+ajMD MPSALcU/zqqwYd60AAIQwqCpk3XqjkG/xxryhfBkp4rlVp2NQijNR9SaqaagH5dWPGDO xP+ulC7T9TwayDATc1uSV0cuDtf9fnzn9m1oycekWIpAQX3HJqsmIhb2ACFjVbQUJc5P uSigkJAwf8IeUwWVl0CgBH5KQC61Vi1aEbyutaRpXagroAKoTaXdlYwTVeAaCjJOVwv1 1sKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=73CVFJP1EtU/U/PZXO/3nWTncfdlBXa7wmk3jyCj1cw=; b=Xy3DgBImU8cThV9VWx1AclMdJUIc6AluFlD5mVAbasemt5ZUMayCDXyl9XK5PjU8Ki ESFy4J2y/TaOyX+1VpI8Rdbz2Sgh2d1b+aPiRp1eiosRfvBulhH7js22rWNkOl3Ys5mx cZiuHyWBpRpJiAaHaE/sZBwRsUBtyL4N5ZpUWNC2ld6gijK+Qyxtv7oqhKjc84afxl1c ca+4wDLFmY/OUvy+RS7xcCzLL9d/5l1Q/iFYyJgjIEJP7u3+MxpGFDCgMGiqjfUOEnvd t5NOHMEybFet5WBoefphJ3kFCU1e2J3NpG04MYYd6mjsWXRNWuOvcYMSUnur/vpKzISx 5X8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f91-v6si16680942plb.510.2018.05.22.06.56.34; Tue, 22 May 2018 06:56:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751342AbeEVN4O (ORCPT + 99 others); Tue, 22 May 2018 09:56:14 -0400 Received: from gloria.sntech.de ([95.129.55.99]:45858 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196AbeEVN4M (ORCPT ); Tue, 22 May 2018 09:56:12 -0400 Received: from p5b127d47.dip0.t-ipconnect.de ([91.18.125.71] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fL7li-0005Ow-Ds; Tue, 22 May 2018 15:56:02 +0200 From: Heiko Stuebner To: Yisheng Xie Cc: linux-kernel@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH 13/33] clk: rockchip: use match_string() helper Date: Tue, 22 May 2018 15:56:01 +0200 Message-ID: <3184431.yyZBj8V0y7@phil> In-Reply-To: <1526903890-35761-14-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-14-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 21. Mai 2018, 13:57:50 CEST schrieb Yisheng Xie: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Heiko Stuebner > Cc: linux-clk@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-rockchip@lists.infradead.org > Signed-off-by: Yisheng Xie > @@ -312,6 +304,8 @@ static struct clk *rockchip_clk_register_frac_branch( > > /* notifier on the fraction divider to catch rate changes */ > if (frac->mux_frac_idx >= 0) { > + pr_debug("%s: find fractional parent in mux at pos %d\n", > + __func__, frac->mux_frac_idx); applied to my Rockchip clk branch for 4.18 after changing the "find" above to "found" again ;-) . Thanks for the nice cleanup Heiko