Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8bafa2a4
Commit
8bafa2a4
authored
Jun 05, 2018
by
Petr Mladek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.18-vsprintf-pcr-removal' into for-4.18
parents
bcf8677b
666902e4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
13 deletions
+10
-13
Documentation/core-api/printk-formats.rst
Documentation/core-api/printk-formats.rst
+1
-2
drivers/clk/renesas/renesas-cpg-mssr.c
drivers/clk/renesas/renesas-cpg-mssr.c
+5
-4
drivers/thermal/broadcom/bcm2835_thermal.c
drivers/thermal/broadcom/bcm2835_thermal.c
+2
-2
drivers/tty/serial/sh-sci.c
drivers/tty/serial/sh-sci.c
+2
-2
lib/vsprintf.c
lib/vsprintf.c
+0
-3
No files found.
Documentation/core-api/printk-formats.rst
View file @
8bafa2a4
...
@@ -419,11 +419,10 @@ struct clk
...
@@ -419,11 +419,10 @@ struct clk
%pC pll1
%pC pll1
%pCn pll1
%pCn pll1
%pCr 1560000000
For printing struct clk structures. %pC and %pCn print the name
For printing struct clk structures. %pC and %pCn print the name
(Common Clock Framework) or address (legacy clock framework) of the
(Common Clock Framework) or address (legacy clock framework) of the
structure
; %pCr prints the current clock rate
.
structure.
Passed by reference.
Passed by reference.
...
...
drivers/clk/renesas/renesas-cpg-mssr.c
View file @
8bafa2a4
...
@@ -258,8 +258,9 @@ struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec,
...
@@ -258,8 +258,9 @@ struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec,
dev_err
(
dev
,
"Cannot get %s clock %u: %ld"
,
type
,
clkidx
,
dev_err
(
dev
,
"Cannot get %s clock %u: %ld"
,
type
,
clkidx
,
PTR_ERR
(
clk
));
PTR_ERR
(
clk
));
else
else
dev_dbg
(
dev
,
"clock (%u, %u) is %pC at %pCr Hz
\n
"
,
dev_dbg
(
dev
,
"clock (%u, %u) is %pC at %lu Hz
\n
"
,
clkspec
->
args
[
0
],
clkspec
->
args
[
1
],
clk
,
clk
);
clkspec
->
args
[
0
],
clkspec
->
args
[
1
],
clk
,
clk_get_rate
(
clk
));
return
clk
;
return
clk
;
}
}
...
@@ -326,7 +327,7 @@ static void __init cpg_mssr_register_core_clk(const struct cpg_core_clk *core,
...
@@ -326,7 +327,7 @@ static void __init cpg_mssr_register_core_clk(const struct cpg_core_clk *core,
if
(
IS_ERR_OR_NULL
(
clk
))
if
(
IS_ERR_OR_NULL
(
clk
))
goto
fail
;
goto
fail
;
dev_dbg
(
dev
,
"Core clock %pC at %
pCr Hz
\n
"
,
clk
,
clk
);
dev_dbg
(
dev
,
"Core clock %pC at %
lu Hz
\n
"
,
clk
,
clk_get_rate
(
clk
)
);
priv
->
clks
[
id
]
=
clk
;
priv
->
clks
[
id
]
=
clk
;
return
;
return
;
...
@@ -392,7 +393,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
...
@@ -392,7 +393,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
if
(
IS_ERR
(
clk
))
if
(
IS_ERR
(
clk
))
goto
fail
;
goto
fail
;
dev_dbg
(
dev
,
"Module clock %pC at %
pCr Hz
\n
"
,
clk
,
clk
);
dev_dbg
(
dev
,
"Module clock %pC at %
lu Hz
\n
"
,
clk
,
clk_get_rate
(
clk
)
);
priv
->
clks
[
id
]
=
clk
;
priv
->
clks
[
id
]
=
clk
;
priv
->
smstpcr_saved
[
clock
->
index
/
32
].
mask
|=
BIT
(
clock
->
index
%
32
);
priv
->
smstpcr_saved
[
clock
->
index
/
32
].
mask
|=
BIT
(
clock
->
index
%
32
);
return
;
return
;
...
...
drivers/thermal/broadcom/bcm2835_thermal.c
View file @
8bafa2a4
...
@@ -213,8 +213,8 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
...
@@ -213,8 +213,8 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
rate
=
clk_get_rate
(
data
->
clk
);
rate
=
clk_get_rate
(
data
->
clk
);
if
((
rate
<
1920000
)
||
(
rate
>
5000000
))
if
((
rate
<
1920000
)
||
(
rate
>
5000000
))
dev_warn
(
&
pdev
->
dev
,
dev_warn
(
&
pdev
->
dev
,
"Clock %pCn running at %
pCr
Hz is outside of the recommended range: 1.92 to 5MHz
\n
"
,
"Clock %pCn running at %
lu
Hz is outside of the recommended range: 1.92 to 5MHz
\n
"
,
data
->
clk
,
data
->
clk
);
data
->
clk
,
rate
);
/* register of thermal sensor and get info from DT */
/* register of thermal sensor and get info from DT */
tz
=
thermal_zone_of_sensor_register
(
&
pdev
->
dev
,
0
,
data
,
tz
=
thermal_zone_of_sensor_register
(
&
pdev
->
dev
,
0
,
data
,
...
...
drivers/tty/serial/sh-sci.c
View file @
8bafa2a4
...
@@ -2704,8 +2704,8 @@ static int sci_init_clocks(struct sci_port *sci_port, struct device *dev)
...
@@ -2704,8 +2704,8 @@ static int sci_init_clocks(struct sci_port *sci_port, struct device *dev)
dev_dbg
(
dev
,
"failed to get %s (%ld)
\n
"
,
clk_names
[
i
],
dev_dbg
(
dev
,
"failed to get %s (%ld)
\n
"
,
clk_names
[
i
],
PTR_ERR
(
clk
));
PTR_ERR
(
clk
));
else
else
dev_dbg
(
dev
,
"clk %s is %pC rate %
pCr
\n
"
,
clk_names
[
i
],
dev_dbg
(
dev
,
"clk %s is %pC rate %
lu
\n
"
,
clk_names
[
i
],
clk
,
clk
);
clk
,
clk
_get_rate
(
clk
)
);
sci_port
->
clks
[
i
]
=
IS_ERR
(
clk
)
?
NULL
:
clk
;
sci_port
->
clks
[
i
]
=
IS_ERR
(
clk
)
?
NULL
:
clk
;
}
}
return
0
;
return
0
;
...
...
lib/vsprintf.c
View file @
8bafa2a4
...
@@ -1459,9 +1459,6 @@ char *clock(char *buf, char *end, struct clk *clk, struct printf_spec spec,
...
@@ -1459,9 +1459,6 @@ char *clock(char *buf, char *end, struct clk *clk, struct printf_spec spec,
return
string
(
buf
,
end
,
NULL
,
spec
);
return
string
(
buf
,
end
,
NULL
,
spec
);
switch
(
fmt
[
1
])
{
switch
(
fmt
[
1
])
{
case
'r'
:
return
number
(
buf
,
end
,
clk_get_rate
(
clk
),
spec
);
case
'n'
:
case
'n'
:
default:
default:
#ifdef CONFIG_COMMON_CLK
#ifdef CONFIG_COMMON_CLK
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment