From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6301C433DB for ; Wed, 24 Feb 2021 15:26:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9C15964EC4 for ; Wed, 24 Feb 2021 15:26:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238681AbhBXPZm (ORCPT ); Wed, 24 Feb 2021 10:25:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237222AbhBXOs5 (ORCPT ); Wed, 24 Feb 2021 09:48:57 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED87AC06121D for ; Wed, 24 Feb 2021 06:42:58 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id m1so2059074wml.2 for ; Wed, 24 Feb 2021 06:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4kcaWc3A3e2JpDYvEG1HkJ7RHkTySsh0QGk3axijlk0=; b=zAWYfmcRa81N8ayfCtv7YISYLImGL3DtFIgXnH8YZ82jEbqtH8t1om/1yRzEU80h8S uv5Y98HkbEi/Mb/lBNbhpZa931kwWUymnps+vlG0AsrbjF4qB8d77f6R9s1pR14nfDy3 NQBi6DnKQRCqNEna/JcrzS8YAdLVnkiThf/49nhLv7kTFLJzHt5Wh1rUpjp0caU4M5V3 4C7hGu6Yfonujcxtycnfrka4VAEYXKUV+SFES403HdoKD50OPG5cUJeXOSqfx/bhKRG0 eltMsneu9FwwFUEzgJv1vAOO/WprVJWcEe+lVtkdzDXQVUgU2GYyr/EAVOmYPx2mVJwW RQ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4kcaWc3A3e2JpDYvEG1HkJ7RHkTySsh0QGk3axijlk0=; b=CxU9OQ7N8nqnRLtcOd5WQliUjL9queHekbFh7dt2bxne43tlinE/94/av8Ff3XoYYW 9W/jfqdVR9R3Xzg7mq+lUt1gIFutmxpAgjQH5PTqE9eUuwSNOTz2AxJ0knU/yXClFirm oqZUsCGxCe5J/N8EvSbWCPU+v90LO0DuA1D5GI7bpXfcNA/P5stty5nNo0eLeTc5aTBh zNlGzW5eQoXgqbPgYBq9LMVfH9dR3hnFh3pw+FfuvXMJTzRBTzm1HxGJErXCmYIaYXQJ 0HG86hMGVEXjqj5Kqn6G0Ur8kF+ppCIOK8k/y11CsUZzFaw/37SlywVprbH9zUOgnwc4 g1kA== X-Gm-Message-State: AOAM532LiCdiAYXV4bruBxrdOe/HrFesDo3lfVm6Nyv5Utw4/BNPSUVi xDp+2FigLnhZD3FTk4PwoivJoA== X-Google-Smtp-Source: ABdhPJyZD7BW+LIu4wbjkLZsjSoMWfexoyGfPB8WVBh3k+PENCICivX461RCP92G6r8IrNnAdG9zrw== X-Received: by 2002:a1c:65d6:: with SMTP id z205mr4037793wmb.88.1614177777616; Wed, 24 Feb 2021 06:42:57 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-252.adsl.proxad.net. [82.252.157.252]) by smtp.gmail.com with ESMTPSA id p3sm4170669wro.55.2021.02.24.06.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:57 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , Maxime Coquelin , Alexandre Torgue , Amelie Delaunay , Etienne Carriere , Chunfeng Yun , linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) Subject: [PATCH v2 9/9] phy/drivers/stm32: Use HZ macros Date: Wed, 24 Feb 2021 15:42:19 +0100 Message-Id: <20210224144222.23762-9-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano --- drivers/phy/st/phy-stm32-usbphyc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index a54317e96c41..02dd12bb4692 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -14,6 +14,7 @@ #include #include #include +#include #define STM32_USBPHYC_PLL 0x0 #define STM32_USBPHYC_MISC 0x8 @@ -48,7 +49,6 @@ static const char * const supplies_names[] = { #define PLL_FVCO_MHZ 2880 #define PLL_INFF_MIN_RATE_HZ 19200000 #define PLL_INFF_MAX_RATE_HZ 38400000 -#define HZ_PER_MHZ 1000000L struct pll_params { u8 ndiv; -- 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4417DC433DB for ; Wed, 24 Feb 2021 14:44:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D20B664ED6 for ; Wed, 24 Feb 2021 14:44:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D20B664ED6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LtZgGCGAHnPSbkkAcn43MWAUxX/yD343bR6vaMulSYE=; b=1Xanz9i3ewsRDvPGJLuh6jq4cw OiprwMoqKKv7DuJxkc4vsY0Xn2mraXXqxcf2nzuXyIDeczNLExyDKVqNO5t4zMtHjhcuQdlDydHIM gxi4xoidbBiP4VZHc2p+IfOzwhrJyaMHc6E6jHHE/hEFmDcZFsAPrS57MduJ1I+ndnTdbSv4iDupa jqKhaJqPz6IvD0OwP4l8l8btrC1NeaeBtoN6zMapusGa8TK/O37q3p/hxZ5j9YuPxYckOBYMCBX2r R50XlWIfnCOxx49Fi7NyCjJBN9L6J7VVZXYFoMiFHvPKM5k9CnJaDyCNGLPVjUGY6XP6AcnDl8TwJ Bw3H/eDA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEvNV-0004n3-3e; Wed, 24 Feb 2021 14:43:01 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEvNS-0004mT-UM for linux-arm-kernel@lists.infradead.org; Wed, 24 Feb 2021 14:42:59 +0000 Received: by mail-wm1-x332.google.com with SMTP id w7so2001054wmb.5 for ; Wed, 24 Feb 2021 06:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4kcaWc3A3e2JpDYvEG1HkJ7RHkTySsh0QGk3axijlk0=; b=zAWYfmcRa81N8ayfCtv7YISYLImGL3DtFIgXnH8YZ82jEbqtH8t1om/1yRzEU80h8S uv5Y98HkbEi/Mb/lBNbhpZa931kwWUymnps+vlG0AsrbjF4qB8d77f6R9s1pR14nfDy3 NQBi6DnKQRCqNEna/JcrzS8YAdLVnkiThf/49nhLv7kTFLJzHt5Wh1rUpjp0caU4M5V3 4C7hGu6Yfonujcxtycnfrka4VAEYXKUV+SFES403HdoKD50OPG5cUJeXOSqfx/bhKRG0 eltMsneu9FwwFUEzgJv1vAOO/WprVJWcEe+lVtkdzDXQVUgU2GYyr/EAVOmYPx2mVJwW RQ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4kcaWc3A3e2JpDYvEG1HkJ7RHkTySsh0QGk3axijlk0=; b=LBbboCJ/yNBuQa2gBk8odMHCAFSM7+MHWVel1U+HtRU31R+voRvFVpCeM/AwbCMKLJ 9Hc85WMXCGQDeMe6M7CUIc2UpjchNQ2skthdpQMBh2/g/e7iRTce02aUw4iMb1Cb7H6d oBlMUBYVpfycWuO+5KuMENyBoVHYavehEnh1h2ujOa4bn0Lii0nFYJPkrZ7C9N0VKNq+ fTXiBBaGNmM1n8N0BriG8pzRhpIigC8OqV+PyolgfpNuy7PxIbl2tbYqBoTlX8Fcl8rA kLV86jNBZtxRrv74Emo8poqnbjLUV7DUIct+Vbq5nks1t7Myy2Fx4rnI0GZa84eKzFwy tPwA== X-Gm-Message-State: AOAM532O0FXBCaykRUWJzufogCo4CFg6eegZGMww7O4W+W5JNVgSw/Ow CLuT+X1toj93e9fm+TeJlX9eWw== X-Google-Smtp-Source: ABdhPJyZD7BW+LIu4wbjkLZsjSoMWfexoyGfPB8WVBh3k+PENCICivX461RCP92G6r8IrNnAdG9zrw== X-Received: by 2002:a1c:65d6:: with SMTP id z205mr4037793wmb.88.1614177777616; Wed, 24 Feb 2021 06:42:57 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-252.adsl.proxad.net. [82.252.157.252]) by smtp.gmail.com with ESMTPSA id p3sm4170669wro.55.2021.02.24.06.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:57 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Subject: [PATCH v2 9/9] phy/drivers/stm32: Use HZ macros Date: Wed, 24 Feb 2021 15:42:19 +0100 Message-Id: <20210224144222.23762-9-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210224_094259_055409_57954124 X-CRM114-Status: GOOD ( 14.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Etienne Carriere , Amelie Delaunay , Alexandre Torgue , linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , Maxime Coquelin , Chunfeng Yun , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano --- drivers/phy/st/phy-stm32-usbphyc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index a54317e96c41..02dd12bb4692 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -14,6 +14,7 @@ #include #include #include +#include #define STM32_USBPHYC_PLL 0x0 #define STM32_USBPHYC_MISC 0x8 @@ -48,7 +49,6 @@ static const char * const supplies_names[] = { #define PLL_FVCO_MHZ 2880 #define PLL_INFF_MIN_RATE_HZ 19200000 #define PLL_INFF_MAX_RATE_HZ 38400000 -#define HZ_PER_MHZ 1000000L struct pll_params { u8 ndiv; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel