Skip to contentSkip to conversation

clk: Remove a useless include

PATCH Applied Christophe JAILLET 5 participants 5 messages Nov 12, 2022 – Nov 23, 2022

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: Remove a useless include

<linux/rational.h> is not needed for these drivers. Remove the corresponding #include.

---
 drivers/clk/clk-versaclock5.c | 1 -
 drivers/clk/meson/clk-pll.c   | 1 -
 drivers/clk/rockchip/clk.c    | 1 -
 3 files changed, 3 deletions(-)
drivers/clk/clk-versaclock5.c +0 -1
index 88689415aff9..e9737969170e 100644
@@ -20,7 +20,6 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
-#include <linux/rational.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
drivers/clk/meson/clk-pll.c +0 -1
index 9e55617bc3b4..4b96e1590224 100644
@@ -32,7 +32,6 @@
 #include <linux/io.h>
 #include <linux/math64.h>
 #include <linux/module.h>
-#include <linux/rational.h>
 
 #include "clk-regmap.h"
 #include "clk-pll.h"
drivers/clk/rockchip/clk.c +0 -1
index e63d4f20b479..398c427b8e81 100644
@@ -21,7 +21,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
 #include <linux/reboot.h>
-#include <linux/rational.h>
 
 #include "../clk-fractional-divider.h"
 #include "clk.h"
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/1
#1 lore raw

Am Samstag, 12. November 2022, 22:43:03 CET schrieb Christophe JAILLET:

Quoted 8 lines

<linux/rational.h> is not needed for these drivers. Remove the corresponding #include.

---
 drivers/clk/clk-versaclock5.c | 1 -
 drivers/clk/meson/clk-pll.c   | 1 -
 drivers/clk/rockchip/clk.c    | 1 -

Clock-trees for soc families normally have different sub-maintainers, so depending on how we want to merge this, you might need to split this into 3 patches.

But at least for the Rockchip part, I'm also fine with the patch going in as a whole, so (for the Rockchip part):

Heiko

Quoted 2 lines
 3 files changed, 3 deletions(-)

[...]

Quoted 13 lines
drivers/clk/rockchip/clk.c +0 -1
index e63d4f20b479..398c427b8e81 100644
@@ -21,7 +21,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
 #include <linux/reboot.h>
-#include <linux/rational.h>
 
 #include "../clk-fractional-divider.h"
 #include "clk.h"
maintainer Acked-by
#2 lore raw
Quoted 14 lines · Heiko Stübner

Am Samstag, 12. November 2022, 22:43:03 CET schrieb Christophe JAILLET:

Quoted 8 lines

<linux/rational.h> is not needed for these drivers. Remove the corresponding #include.

---
 drivers/clk/clk-versaclock5.c | 1 -
 drivers/clk/meson/clk-pll.c   | 1 -
 drivers/clk/rockchip/clk.c    | 1 -

Clock-trees for soc families normally have different sub-maintainers, so depending on how we want to merge this, you might need to split this into 3 patches.

Quoted 7 lines

But at least for the Rockchip part, I'm also fine with the patch going in as a whole, so (for the Rockchip part):

Heiko

Same for the Amlogic part

Quoted 19 lines
Quoted 3 lines
 3 files changed, 3 deletions(-)

[...]

Quoted 13 lines
drivers/clk/rockchip/clk.c +0 -1
index e63d4f20b479..398c427b8e81 100644
@@ -21,7 +21,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
 #include <linux/reboot.h>
-#include <linux/rational.h>
 
 #include "../clk-fractional-divider.h"
 #include "clk.h"
Reviewed-by
#3 lore raw

Hello Jerome,

Quoted 19 lines · On Sun, 13 Nov 2022 20:29:43 +0100 Jerome Brunet <[email protected]> wrote:
Quoted 17 lines · Heiko Stübner

Am Samstag, 12. November 2022, 22:43:03 CET schrieb Christophe JAILLET:

Quoted 8 lines

<linux/rational.h> is not needed for these drivers. Remove the corresponding #include.

---
 drivers/clk/clk-versaclock5.c | 1 -
 drivers/clk/meson/clk-pll.c   | 1 -
 drivers/clk/rockchip/clk.c    | 1 -  

Clock-trees for soc families normally have different sub-maintainers, so depending on how we want to merge this, you might need to split this into 3 patches.

But at least for the Rockchip part, I'm also fine with the patch going in as a whole, so (for the Rockchip part):

Quoted 8 lines
Quoted 4 lines

Heiko

Same for the Amlogic part

And the same for Versaclock:

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com