From patchwork Wed Feb 24 14:42:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 12101947 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 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;