From: Sean Anderson <seanga2@gmail.com>
To: Patrick Delaunay <patrick.delaunay@foss.st.com>, u-boot@lists.denx.de
Cc: Lukasz Majewski <lukma@denx.de>,
U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH 1/2] clk: cosmetic: reorder include files
Date: Sun, 21 Nov 2021 14:14:50 -0500 [thread overview]
Message-ID: <aee3214c-a7dc-fb73-ea64-e47fea500762@gmail.com> (raw)
In-Reply-To: <20211119151203.1.I011e780560149e15eea06471822a1fedfac58766@changeid>
On 11/19/21 9:12 AM, Patrick Delaunay wrote:
> Reorder include files in the U-Boot expected order:
>
> the common.h header should always be first,
> followed by other headers in order,
> then headers with directories,
> then local files.
>
> It is a preliminary step for next patch.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> drivers/clk/clk-composite.c | 6 +++---
> drivers/clk/clk-fixed-factor.c | 9 +++++----
> drivers/clk/clk-gate.c | 9 +++++----
> drivers/clk/clk-mux.c | 5 +++--
> drivers/clk/clk-uclass.c | 2 +-
> drivers/clk/clk.c | 2 +-
> 6 files changed, 18 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
> index bb5351ebc0..12288e10b3 100644
> --- a/drivers/clk/clk-composite.c
> +++ b/drivers/clk/clk-composite.c
> @@ -5,13 +5,13 @@
> */
>
> #include <common.h>
> -#include <asm/io.h>
> -#include <malloc.h>
> +#include <clk.h>
> #include <clk-uclass.h>
> +#include <malloc.h>
> +#include <asm/io.h>
> #include <dm/device.h>
> #include <dm/devres.h>
> #include <linux/clk-provider.h>
> -#include <clk.h>
> #include <linux/err.h>
>
> #include "clk.h"
> diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
> index 8d9823bdab..9fcf30fd2e 100644
> --- a/drivers/clk/clk-fixed-factor.c
> +++ b/drivers/clk/clk-fixed-factor.c
> @@ -6,16 +6,17 @@
> * Copyright (C) 2011 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
> */
> #include <common.h>
> -#include <malloc.h>
> +#include <clk.h>
> #include <clk-uclass.h>
> +#include <div64.h>
> +#include <malloc.h>
> #include <dm/device.h>
> #include <dm/devres.h>
> #include <linux/clk-provider.h>
> -#include <div64.h>
> -#include <clk.h>
> -#include "clk.h"
> #include <linux/err.h>
>
> +#include "clk.h"
> +
> #define UBOOT_DM_CLK_IMX_FIXED_FACTOR "ccf_clk_fixed_factor"
>
> static ulong clk_factor_recalc_rate(struct clk *clk)
> diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c
> index 006d3b6629..708499d95a 100644
> --- a/drivers/clk/clk-gate.c
> +++ b/drivers/clk/clk-gate.c
> @@ -8,17 +8,18 @@
> */
>
> #include <common.h>
> -#include <asm/io.h>
> -#include <malloc.h>
> +#include <clk.h>
> #include <clk-uclass.h>
> +#include <malloc.h>
> +#include <asm/io.h>
> #include <dm/device.h>
> #include <dm/devres.h>
> #include <linux/bitops.h>
> #include <linux/clk-provider.h>
> -#include <clk.h>
> -#include "clk.h"
> #include <linux/err.h>
>
> +#include "clk.h"
> +
> #define UBOOT_DM_CLK_GATE "clk_gate"
>
> /**
> diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c
> index f1becd20d8..fd746f2de3 100644
> --- a/drivers/clk/clk-mux.c
> +++ b/drivers/clk/clk-mux.c
> @@ -24,14 +24,15 @@
> #include <common.h>
> #include <clk.h>
> #include <clk-uclass.h>
> +#include <malloc.h>
> +#include <asm/io.h>
> #include <dm/device.h>
> #include <dm/devres.h>
> #include <dm/uclass.h>
> #include <linux/bitops.h>
> -#include <malloc.h>
> -#include <asm/io.h>
> #include <linux/clk-provider.h>
> #include <linux/err.h>
> +
> #include "clk.h"
>
> #define UBOOT_DM_CLK_CCF_MUX "ccf_clk_mux"
> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
> index 493018b33e..f2d2642754 100644
> --- a/drivers/clk/clk-uclass.c
> +++ b/drivers/clk/clk-uclass.c
> @@ -16,6 +16,7 @@
> #include <errno.h>
> #include <log.h>
> #include <malloc.h>
> +#include <asm/global_data.h>
> #include <dm/device_compat.h>
> #include <dm/device-internal.h>
> #include <dm/devres.h>
> @@ -23,7 +24,6 @@
> #include <linux/bug.h>
> #include <linux/clk-provider.h>
> #include <linux/err.h>
> -#include <asm/global_data.h>
>
> static inline const struct clk_ops *clk_dev_ops(struct udevice *dev)
> {
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index 1efb7fe9f3..d1a9787071 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -5,13 +5,13 @@
> */
>
> #include <common.h>
> +#include <clk.h>
> #include <clk-uclass.h>
> #include <log.h>
> #include <dm/device.h>
> #include <dm/uclass.h>
> #include <dm/lists.h>
> #include <dm/device-internal.h>
> -#include <clk.h>
>
> int clk_register(struct clk *clk, const char *drv_name,
> const char *name, const char *parent_name)
>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
next prev parent reply other threads:[~2021-11-21 19:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 14:12 [PATCH 1/2] clk: cosmetic: reorder include files Patrick Delaunay
2021-11-19 14:12 ` [PATCH 2/2] clk: define LOG_CATEGORY for generic and ccf clocks Patrick Delaunay
2021-11-21 19:16 ` Sean Anderson
2021-11-21 19:14 ` Sean Anderson [this message]
2021-12-15 19:05 ` [PATCH 1/2] clk: cosmetic: reorder include files Sean Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aee3214c-a7dc-fb73-ea64-e47fea500762@gmail.com \
--to=seanga2@gmail.com \
--cc=lukma@denx.de \
--cc=patrick.delaunay@foss.st.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-stm32@st-md-mailman.stormreply.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).