From patchwork Thu Apr 4 08:11:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 161758 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1297708jan; Thu, 4 Apr 2019 01:12:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf3vihZfzgRyWIYmsrWCCcsQdEaSWy/67V3u3K8x3EnUZ83ehPLXd0cIl0Tf6suS4lroQU X-Received: by 2002:a63:2015:: with SMTP id g21mr4408825pgg.226.1554365542954; Thu, 04 Apr 2019 01:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554365542; cv=none; d=google.com; s=arc-20160816; b=UBgFjy3s4n8BmZjbThw6wjNxzLh/7HWMk27kN/0Lgo8lfKI+ZnFQvBIsC0L8caOOiz v6H4qp3lZUHbfJ29riH30NGZMngZGVGg1us51dCvfrH/XNtwgjTDPkC3W9QxCzK95Uds u6ylYNVqBUhMsvhKBiSE2/NIcjtwFad+Lii0OyTPoEmeepS31WgzUIRR8Y/PJJvwzfQi m/6Sytl6VUDvUtHV2MivL4fzlMB+CXc2u55yg1H9K1dcukNpH7MHRaCK+aTGQx00V+7B zwmLAXj03HSJ9kkoq0qKQq0LJ2LiKVrDBEkFCvf/WRPkhBzg1C2GNBzeaFiH/tvBp5jg axpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zIf/X6VrPJCu25i6tJISEyLUL/53b+r8hYLAt8o0Gd4=; b=mi/TisqeglX9L/2JGNcuDQCxMnG0XIDVpu3JpH0QxDo4GPDyr6E3IOQlBt/e00vnZC SqsKRkpCHX+mU0hCB3HfL6R84fkZFrHhlrDkWA/pNYcSs4ewLE00cKnal8BhJ8yNZAev Ul8Hjtdd1IRK/7/EdZAMQx1QQsx9DdKwCLAlGDAtXd5hPnJ0/BgWzp2L8UeB1Vl9vbZh EpEU3hupkfGebWVESNW6nMqeeSBy7/VXS2Zhr56RQ2knFK7MxOl9Fa7AJpOhom/Ael0g ibU2QlDsdPHNfMS/smnAeQI6Kwk0QUp9ONvVOm9hKTBj6cll+XO2y42wwvLICLvb083z wu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZHhZsnLr; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si7767545pgv.586.2019.04.04.01.12.22; Thu, 04 Apr 2019 01:12:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZHhZsnLr; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbfDDIMW (ORCPT + 5 others); Thu, 4 Apr 2019 04:12:22 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:35304 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727321AbfDDIMV (ORCPT ); Thu, 4 Apr 2019 04:12:21 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x348CJ6r105729; Thu, 4 Apr 2019 03:12:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554365539; bh=zIf/X6VrPJCu25i6tJISEyLUL/53b+r8hYLAt8o0Gd4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZHhZsnLru7MxVVMKxVPNp2fRTjqKei6On40D0gV+S5ZWYIFU7QDcBnkuX5/nYN9I3 9DLaFxedxaG6ZzT2kSv1Qib1RySVsMRhDZ6apgxQbDdztiCg9uzxKLUIRf+niotmeD LsAXcUV+3r3mP2TTk2q3KzkxAShTx2lB2HE9d5LE= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x348CIfV004647 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 Apr 2019 03:12:19 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 4 Apr 2019 03:12:12 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 4 Apr 2019 03:12:12 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x348C8G8093305; Thu, 4 Apr 2019 03:12:11 -0500 From: Tero Kristo To: , , , CC: Subject: [PATCH 1/6] clk: ti: export the omap2_clk_is_hw_omap call Date: Thu, 4 Apr 2019 11:11:02 +0300 Message-ID: <1554365467-1325-2-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554365467-1325-1-git-send-email-t-kristo@ti.com> References: <1554365467-1325-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org There is one instance outside the TI clock driver that needs the info whether a clock is an OMAP HW clock or not. Thus, move the function declaration into the public header. Signed-off-by: Tero Kristo --- drivers/clk/ti/clock.h | 1 - include/linux/clk/ti.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h index 1c0fac5..4223a39 100644 --- a/drivers/clk/ti/clock.h +++ b/drivers/clk/ti/clock.h @@ -303,7 +303,6 @@ long omap4_dpll_regm4xen_round_rate(struct clk_hw *hw, int omap4_dpll_regm4xen_determine_rate(struct clk_hw *hw, struct clk_rate_request *req); int omap2_clk_for_each(int (*fn)(struct clk_hw_omap *hw)); -bool omap2_clk_is_hw_omap(struct clk_hw *hw); extern struct ti_clk_ll_ops *ti_clk_ll_ops; diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index 78872ef..2821f7c 100644 --- a/include/linux/clk/ti.h +++ b/include/linux/clk/ti.h @@ -243,6 +243,7 @@ struct ti_clk_ll_ops { #define to_clk_hw_omap(_hw) container_of(_hw, struct clk_hw_omap, hw) +bool omap2_clk_is_hw_omap(struct clk_hw *hw); int omap2_clk_disable_autoidle_all(void); int omap2_clk_enable_autoidle_all(void); int omap2_clk_allow_idle(struct clk *clk);