Skip to contentSkip to conversation

clk: correct spelling of bound

PATCH Superseded Anatolij Gustschin 3 participants 5 messages Aug 2, 2019 – Jan 27, 2020 Common clk

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: correct spelling of bound

bound is the correct past tense of bind.

---
 drivers/clk/clk-composite.c | 12 ++++++------
 drivers/clk/clk-divider.c   |  4 ++--
 drivers/clk/clk-gate.c      |  4 ++--
 drivers/clk/clk-mux.c       |  8 ++++----
 drivers/clk/clk.c           |  2 +-
 include/clk.h               |  6 +++---
 6 files changed, 18 insertions(+), 18 deletions(-)
drivers/clk/clk-composite.c +6 -6
index a5626c33d1..484b4a82ba 100644
@@ -18,7 +18,7 @@
 
 static u8 clk_composite_get_parent(struct clk *clk)
 {
-	struct clk_composite *composite = to_clk_composite(clk_dev_binded(clk) ?
+	struct clk_composite *composite = to_clk_composite(clk_dev_bound(clk) ?
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	struct clk *mux = composite->mux;
 
@@ -27,7 +27,7 @@ static u8 clk_composite_get_parent(struct clk *clk)
 
 static int clk_composite_set_parent(struct clk *clk, struct clk *parent)
 {
-	struct clk_composite *composite = to_clk_composite(clk_dev_binded(clk) ?
+	struct clk_composite *composite = to_clk_composite(clk_dev_bound(clk) ?
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *mux_ops = composite->mux_ops;
 	struct clk *mux = composite->mux;
@@ -37,7 +37,7 @@ static int clk_composite_set_parent(struct clk *clk, struct clk *parent)
 
 static unsigned long clk_composite_recalc_rate(struct clk *clk)
 {
-	struct clk_composite *composite = to_clk_composite(clk_dev_binded(clk) ?
+	struct clk_composite *composite = to_clk_composite(clk_dev_bound(clk) ?
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *rate_ops = composite->rate_ops;
 	struct clk *rate = composite->rate;
@@ -47,7 +47,7 @@ static unsigned long clk_composite_recalc_rate(struct clk *clk)
 
 static ulong clk_composite_set_rate(struct clk *clk, unsigned long rate)
 {
-	struct clk_composite *composite = to_clk_composite(clk_dev_binded(clk) ?
+	struct clk_composite *composite = to_clk_composite(clk_dev_bound(clk) ?
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *rate_ops = composite->rate_ops;
 	struct clk *clk_rate = composite->rate;
@@ -57,7 +57,7 @@ static ulong clk_composite_set_rate(struct clk *clk, unsigned long rate)
 
 static int clk_composite_enable(struct clk *clk)
 {
-	struct clk_composite *composite = to_clk_composite(clk_dev_binded(clk) ?
+	struct clk_composite *composite = to_clk_composite(clk_dev_bound(clk) ?
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *gate_ops = composite->gate_ops;
 	struct clk *gate = composite->gate;
@@ -67,7 +67,7 @@ static int clk_composite_enable(struct clk *clk)
 
 static int clk_composite_disable(struct clk *clk)
 {
-	struct clk_composite *composite = to_clk_composite(clk_dev_binded(clk) ?
+	struct clk_composite *composite = to_clk_composite(clk_dev_bound(clk) ?
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *gate_ops = composite->gate_ops;
 	struct clk *gate = composite->gate;
drivers/clk/clk-divider.c +2 -2
index 822e09b084..d3c5db0be2 100644
@@ -70,7 +70,7 @@ unsigned long divider_recalc_rate(struct clk *hw, unsigned long parent_rate,
 
 static ulong clk_divider_recalc_rate(struct clk *clk)
 {
-	struct clk_divider *divider = to_clk_divider(clk_dev_binded(clk) ?
+	struct clk_divider *divider = to_clk_divider(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	unsigned long parent_rate = clk_get_parent_rate(clk);
 	unsigned int val;
@@ -150,7 +150,7 @@ int divider_get_val(unsigned long rate, unsigned long parent_rate,
 
 static ulong clk_divider_set_rate(struct clk *clk, unsigned long rate)
 {
-	struct clk_divider *divider = to_clk_divider(clk_dev_binded(clk) ?
+	struct clk_divider *divider = to_clk_divider(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	unsigned long parent_rate = clk_get_parent_rate(clk);
 	int value;
drivers/clk/clk-gate.c +2 -2
index 70b8794554..905b98a448 100644
@@ -43,7 +43,7 @@
  */
 static void clk_gate_endisable(struct clk *clk, int enable)
 {
-	struct clk_gate *gate = to_clk_gate(clk_dev_binded(clk) ?
+	struct clk_gate *gate = to_clk_gate(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
 	u32 reg;
@@ -86,7 +86,7 @@ static int clk_gate_disable(struct clk *clk)
 
 int clk_gate_is_enabled(struct clk *clk)
 {
-	struct clk_gate *gate = to_clk_gate(clk_dev_binded(clk) ?
+	struct clk_gate *gate = to_clk_gate(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	u32 reg;
 
drivers/clk/clk-mux.c +4 -4
index 5acc0b8cbd..f7d07dc1dc 100644
@@ -35,7 +35,7 @@
 int clk_mux_val_to_index(struct clk *clk, u32 *table, unsigned int flags,
 			 unsigned int val)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int num_parents = mux->num_parents;
 
@@ -79,7 +79,7 @@ unsigned int clk_mux_index_to_val(u32 *table, unsigned int flags, u8 index)
 
 u8 clk_mux_get_parent(struct clk *clk)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	u32 val;
 
@@ -97,7 +97,7 @@ u8 clk_mux_get_parent(struct clk *clk)
 static int clk_fetch_parent_index(struct clk *clk,
 				  struct clk *parent)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 
 	int i;
@@ -115,7 +115,7 @@ static int clk_fetch_parent_index(struct clk *clk,
 
 static int clk_mux_set_parent(struct clk *clk, struct clk *parent)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int index;
 	u32 val;
drivers/clk/clk.c +1 -1
index 39b3087067..63141e02f9 100644
@@ -56,7 +56,7 @@ const char *clk_hw_get_name(const struct clk *hw)
 	return hw->dev->name;
 }
 
-bool clk_dev_binded(struct clk *clk)
+bool clk_dev_bound(struct clk *clk)
 {
 	if (clk->dev && (clk->dev->flags & DM_FLAG_BOUND))
 		return true;
include/clk.h +3 -3
index 2ebc905e04..64e4bcd048 100644
@@ -358,11 +358,11 @@ static inline bool clk_valid(struct clk *clk)
 int clk_get_by_id(ulong id, struct clk **clkp);
 
 /**
- * clk_dev_binded() - Check whether the clk has a device binded
+ * clk_dev_bound() - Check whether the clk has a device bound
  *
  * @clk		A pointer to the clk
  *
- * @return true on binded, or false on no
+ * @return true when bound, or false otherwise
  */
-bool clk_dev_binded(struct clk *clk);
+bool clk_dev_bound(struct clk *clk);
 #endif
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 clk: correct spelling of bound

Hi Anatolij,

Quoted 184 lines

bound is the correct past tense of bind.

---
 drivers/clk/clk-composite.c | 12 ++++++------
 drivers/clk/clk-divider.c   |  4 ++--
 drivers/clk/clk-gate.c      |  4 ++--
 drivers/clk/clk-mux.c       |  8 ++++----
 drivers/clk/clk.c           |  2 +-
 include/clk.h               |  6 +++---
 6 files changed, 18 insertions(+), 18 deletions(-)
drivers/clk/clk-composite.c +0 -1
index a5626c33d1..484b4a82ba 100644
@@ -18,7 +18,7 @@
 
 static u8 clk_composite_get_parent(struct clk *clk)
 {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ? (struct clk *)dev_get_clk_ptr(clk->dev) : clk); struct clk *mux = composite->mux;

drivers/clk/clk-composite.c +0 -1
@@ -27,7 +27,7 @@ static u8 clk_composite_get_parent(struct clk *clk)
 
 static int clk_composite_set_parent(struct clk *clk, struct clk
 *parent) {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ? (struct clk *)dev_get_clk_ptr(clk->dev) : clk); const struct clk_ops *mux_ops = composite->mux_ops; struct clk *mux = composite->mux;

drivers/clk/clk-composite.c +0 -1
@@ -37,7 +37,7 @@ static int clk_composite_set_parent(struct clk
 *clk, struct clk *parent) 
 static unsigned long clk_composite_recalc_rate(struct clk *clk)
 {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ? (struct clk *)dev_get_clk_ptr(clk->dev) : clk); const struct clk_ops *rate_ops = composite->rate_ops; struct clk *rate = composite->rate;

drivers/clk/clk-composite.c +0 -1
@@ -47,7 +47,7 @@ static unsigned long
 clk_composite_recalc_rate(struct clk *clk) 
 static ulong clk_composite_set_rate(struct clk *clk, unsigned long
 rate) {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ? (struct clk *)dev_get_clk_ptr(clk->dev) : clk); const struct clk_ops *rate_ops = composite->rate_ops; struct clk *clk_rate = composite->rate;

drivers/clk/clk-composite.c +0 -1
@@ -57,7 +57,7 @@ static ulong clk_composite_set_rate(struct clk
 *clk, unsigned long rate) 
 static int clk_composite_enable(struct clk *clk)
 {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ? (struct clk *)dev_get_clk_ptr(clk->dev) : clk); const struct clk_ops *gate_ops = composite->gate_ops; struct clk *gate = composite->gate;

drivers/clk/clk-composite.c +0 -1
@@ -67,7 +67,7 @@ static int clk_composite_enable(struct clk *clk)
 
 static int clk_composite_disable(struct clk *clk)
 {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ? (struct clk *)dev_get_clk_ptr(clk->dev) : clk); const struct clk_ops *gate_ops = composite->gate_ops; struct clk *gate = composite->gate;

drivers/clk/clk-divider.c +0 -1
index 822e09b084..d3c5db0be2 100644
@@ -70,7 +70,7 @@ unsigned long divider_recalc_rate(struct clk *hw,
 unsigned long parent_rate, 
 static ulong clk_divider_recalc_rate(struct clk *clk)
 {
-	struct clk_divider *divider =

to_clk_divider(clk_dev_binded(clk) ?

drivers/clk/clk-divider.c +1 -0
+	struct clk_divider *divider =

to_clk_divider(clk_dev_bound(clk) ? dev_get_clk_ptr(clk->dev) : clk);

drivers/clk/clk-divider.c +0 -1
 	unsigned long parent_rate = clk_get_parent_rate(clk);
 	unsigned int val;
@@ -150,7 +150,7 @@ int divider_get_val(unsigned long rate, unsigned
 long parent_rate, 
 static ulong clk_divider_set_rate(struct clk *clk, unsigned long
 rate) {
-	struct clk_divider *divider =

to_clk_divider(clk_dev_binded(clk) ?

drivers/clk/clk-divider.c +1 -0
+	struct clk_divider *divider =

to_clk_divider(clk_dev_bound(clk) ? dev_get_clk_ptr(clk->dev) : clk);

drivers/clk/clk-divider.c +0 -0
 	unsigned long parent_rate = clk_get_parent_rate(clk);
 	int value;
drivers/clk/clk-gate.c +2 -2
index 70b8794554..905b98a448 100644
@@ -43,7 +43,7 @@
  */
 static void clk_gate_endisable(struct clk *clk, int enable)
 {
-	struct clk_gate *gate = to_clk_gate(clk_dev_binded(clk) ?
+	struct clk_gate *gate = to_clk_gate(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
 	u32 reg;
@@ -86,7 +86,7 @@ static int clk_gate_disable(struct clk *clk)
 
 int clk_gate_is_enabled(struct clk *clk)
 {
-	struct clk_gate *gate = to_clk_gate(clk_dev_binded(clk) ?
+	struct clk_gate *gate = to_clk_gate(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	u32 reg;
 
drivers/clk/clk-mux.c +4 -4
index 5acc0b8cbd..f7d07dc1dc 100644
@@ -35,7 +35,7 @@
 int clk_mux_val_to_index(struct clk *clk, u32 *table, unsigned int
 flags, unsigned int val)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int num_parents = mux->num_parents;
 
@@ -79,7 +79,7 @@ unsigned int clk_mux_index_to_val(u32 *table,
 unsigned int flags, u8 index) 
 u8 clk_mux_get_parent(struct clk *clk)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	u32 val;
 
@@ -97,7 +97,7 @@ u8 clk_mux_get_parent(struct clk *clk)
 static int clk_fetch_parent_index(struct clk *clk,
 				  struct clk *parent)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 
 	int i;
@@ -115,7 +115,7 @@ static int clk_fetch_parent_index(struct clk *clk,
 
 static int clk_mux_set_parent(struct clk *clk, struct clk *parent)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int index;
 	u32 val;
drivers/clk/clk.c +1 -1
index 39b3087067..63141e02f9 100644
@@ -56,7 +56,7 @@ const char *clk_hw_get_name(const struct clk *hw)
 	return hw->dev->name;
 }
 
-bool clk_dev_binded(struct clk *clk)
+bool clk_dev_bound(struct clk *clk)
 {
 	if (clk->dev && (clk->dev->flags & DM_FLAG_BOUND))
 		return true;
include/clk.h +0 -1
index 2ebc905e04..64e4bcd048 100644
@@ -358,11 +358,11 @@ static inline bool clk_valid(struct clk *clk)
 int clk_get_by_id(ulong id, struct clk **clkp);
 
 /**
- * clk_dev_binded() - Check whether the clk has a device binded

include/clk.h static inline bool clk_valid(struct clk *clk) · line 368

Quoted 10 lines
include/clk.h +3 -2
+ * clk_dev_bound() - Check whether the clk has a device bound
  *
  * @clk		A pointer to the clk
  *
- * @return true on binded, or false on no
+ * @return true when bound, or false otherwise
  */
-bool clk_dev_binded(struct clk *clk);
+bool clk_dev_bound(struct clk *clk);
 #endif

Thanks Anatolij for the correction.

(I will add it to u-boot-clk tree ASAP).

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190803/2a8b5942/attachment.sig>

#2 lore raw

PATCH 1/1 clk: correct spelling of bound

Hi Lukasz,

On Sat, 3 Aug 2019 12:52:44 +0200
Lukasz Majewski lukma at denx.de wrote:
...

Quoted 5 lines

Thanks Anatolij for the correction.

(I will add it to u-boot-clk tree ASAP).

this one doesn't apply any more, I've sent a rebased v2 patch.

--
Anatolij

#3 lore raw

PATCH 1/1 clk: correct spelling of bound

Hi Anatolij,

Quoted 5 lines

Hi Lukasz,

On Sat, 3 Aug 2019 12:52:44 +0200
Lukasz Majewski lukma at denx.de wrote:
...

Quoted 7 lines
Quoted 5 lines

Thanks Anatolij for the correction.

(I will add it to u-boot-clk tree ASAP).

this one doesn't apply any more, I've sent a rebased v2 patch.

Thanks.

Quoted 3 lines

--
Anatolij

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200127/abacea50/attachment.sig>

#4 lore raw

PATCH 1/1 clk: correct spelling of bound

In reply to Anatolij Gustschin
Quoted 183 lines

Subject: [PATCH] clk: correct spelling of bound

bound is the correct past tense of bind.

---
 drivers/clk/clk-composite.c | 12 ++++++------
 drivers/clk/clk-divider.c   |  4 ++--
 drivers/clk/clk-gate.c      |  4 ++--
 drivers/clk/clk-mux.c       |  8 ++++----
 drivers/clk/clk.c           |  2 +-
 include/clk.h               |  6 +++---
 6 files changed, 18 insertions(+), 18 deletions(-)
drivers/clk/clk-composite.c index renamed from drivers/clk/clk-composite.c +0 -0

a5626c33d1..484b4a82ba 100644

drivers/clk/clk-composite.c +0 -1
@@ -18,7 +18,7 @@
 
 static u8 clk_composite_get_parent(struct clk *clk)  {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ?

drivers/clk/clk-composite.c +0 -1
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	struct clk *mux = composite->mux;
@@ -27,7 +27,7 @@ static u8 clk_composite_get_parent(struct clk *clk)
 
 static int clk_composite_set_parent(struct clk *clk, struct clk *parent)  {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ?

drivers/clk/clk-composite.c +0 -1
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *mux_ops = composite->mux_ops;
 	struct clk *mux = composite->mux;
@@ -37,7 +37,7 @@ static int clk_composite_set_parent(struct clk *clk,
 struct clk *parent)
 
 static unsigned long clk_composite_recalc_rate(struct clk *clk)  {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ?

drivers/clk/clk-composite.c +0 -1
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *rate_ops = composite->rate_ops;
 	struct clk *rate = composite->rate;
@@ -47,7 +47,7 @@ static unsigned long clk_composite_recalc_rate(struct
 clk *clk)
 
 static ulong clk_composite_set_rate(struct clk *clk, unsigned long rate)  {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ?

drivers/clk/clk-composite.c +0 -0
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *rate_ops = composite->rate_ops;
 	struct clk *clk_rate = composite->rate; @@ -57,7 +57,7 @@ static ulong

clk_composite_set_rate(struct clk *clk, unsigned long rate)

static int clk_composite_enable(struct clk *clk) {

drivers/clk/clk-composite.c +0 -1
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ?

drivers/clk/clk-composite.c +0 -1
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *gate_ops = composite->gate_ops;
 	struct clk *gate = composite->gate;
@@ -67,7 +67,7 @@ static int clk_composite_enable(struct clk *clk)
 
 static int clk_composite_disable(struct clk *clk)  {
-	struct clk_composite *composite =

to_clk_composite(clk_dev_binded(clk) ?

drivers/clk/clk-composite.c +1 -0
+	struct clk_composite *composite =

to_clk_composite(clk_dev_bound(clk) ?

drivers/clk/clk-composite.c +0 -0
 		(struct clk *)dev_get_clk_ptr(clk->dev) : clk);
 	const struct clk_ops *gate_ops = composite->gate_ops;
 	struct clk *gate = composite->gate;
drivers/clk/clk-divider.c index renamed from drivers/clk/clk-divider.c +0 -0

822e09b084..d3c5db0be2 100644

drivers/clk/clk-divider.c +2 -2
@@ -70,7 +70,7 @@ unsigned long divider_recalc_rate(struct clk *hw,
 unsigned long parent_rate,
 
 static ulong clk_divider_recalc_rate(struct clk *clk)  {
-	struct clk_divider *divider = to_clk_divider(clk_dev_binded(clk) ?
+	struct clk_divider *divider = to_clk_divider(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	unsigned long parent_rate = clk_get_parent_rate(clk);
 	unsigned int val;
@@ -150,7 +150,7 @@ int divider_get_val(unsigned long rate, unsigned long
 parent_rate,
 
 static ulong clk_divider_set_rate(struct clk *clk, unsigned long rate)  {
-	struct clk_divider *divider = to_clk_divider(clk_dev_binded(clk) ?
+	struct clk_divider *divider = to_clk_divider(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	unsigned long parent_rate = clk_get_parent_rate(clk);
 	int value;
drivers/clk/clk-gate.c index renamed from drivers/clk/clk-gate.c +0 -0

70b8794554..905b98a448 100644

drivers/clk/clk-gate.c +2 -2
@@ -43,7 +43,7 @@
  */
 static void clk_gate_endisable(struct clk *clk, int enable)  {
-	struct clk_gate *gate = to_clk_gate(clk_dev_binded(clk) ?
+	struct clk_gate *gate = to_clk_gate(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
 	u32 reg;
@@ -86,7 +86,7 @@ static int clk_gate_disable(struct clk *clk)
 
 int clk_gate_is_enabled(struct clk *clk)  {
-	struct clk_gate *gate = to_clk_gate(clk_dev_binded(clk) ?
+	struct clk_gate *gate = to_clk_gate(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	u32 reg;
 
drivers/clk/clk-mux.c index renamed from drivers/clk/clk-mux.c +0 -0

5acc0b8cbd..f7d07dc1dc 100644

drivers/clk/clk-mux.c +4 -4
@@ -35,7 +35,7 @@
 int clk_mux_val_to_index(struct clk *clk, u32 *table, unsigned int flags,
 			 unsigned int val)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int num_parents = mux->num_parents;
 
@@ -79,7 +79,7 @@ unsigned int clk_mux_index_to_val(u32 *table,
 unsigned int flags, u8 index)
 
 u8 clk_mux_get_parent(struct clk *clk)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	u32 val;
@@ -97,7 +97,7 @@ u8 clk_mux_get_parent(struct clk *clk)  static int
 clk_fetch_parent_index(struct clk *clk,
 				  struct clk *parent)
 {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 
 	int i;
@@ -115,7 +115,7 @@ static int clk_fetch_parent_index(struct clk *clk,
 
 static int clk_mux_set_parent(struct clk *clk, struct clk *parent)  {
-	struct clk_mux *mux = to_clk_mux(clk_dev_binded(clk) ?
+	struct clk_mux *mux = to_clk_mux(clk_dev_bound(clk) ?
 			dev_get_clk_ptr(clk->dev) : clk);
 	int index;
 	u32 val;
drivers/clk/clk.c index renamed from drivers/clk/clk.c +0 -0

39b3087067..63141e02f9 100644

drivers/clk/clk.c +1 -1
@@ -56,7 +56,7 @@ const char *clk_hw_get_name(const struct clk *hw)
 	return hw->dev->name;
 }
 
-bool clk_dev_binded(struct clk *clk)
+bool clk_dev_bound(struct clk *clk)
 {
 	if (clk->dev && (clk->dev->flags & DM_FLAG_BOUND))
 		return true;
include/clk.h index 2ebc905e04..64e4bcd048 renamed from include/clk.h +0 -0

100644

include/clk.h +0 -0
@@ -358,11 +358,11 @@ static inline bool clk_valid(struct clk *clk)  int
 clk_get_by_id(ulong id, struct clk **clkp);
 
 /**

include/clk.h static inline bool clk_valid(struct clk *clk) int · line 367

Quoted 10 lines
include/clk.h +3 -3
- * clk_dev_binded() - Check whether the clk has a device binded
+ * clk_dev_bound() - Check whether the clk has a device bound
  *
  * @clk		A pointer to the clk
  *
- * @return true on binded, or false on no
+ * @return true when bound, or false otherwise
  */
-bool clk_dev_binded(struct clk *clk);
+bool clk_dev_bound(struct clk *clk);
Quoted 3 lines
include/clk.h +0 -1
 #endif
--

2.17.1