projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c973fb
)
clk: si5341: fix an error code problem in si5341_output_clk_set_rate
author
Su Hui
<suhui@nfschina.com>
Wed, 1 Nov 2023 03:16:36 +0000
(11:16 +0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Mon, 18 Dec 2023 01:46:42 +0000
(17:46 -0800)
regmap_bulk_write() return zero or negative error code, return the value
of regmap_bulk_write() rather than '0'.
Fixes:
3044a860fd09
("clk: Add Si5341/Si5340 driver")
Acked-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Su Hui <suhui@nfschina.com>
Link:
https://lore.kernel.org/r/20231101031633.996124-1-suhui@nfschina.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-si5341.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk-si5341.c
b/drivers/clk/clk-si5341.c
index 845b451511d239a25d2d7476f70939edd347e0a7..6e8dd7387cfdd48e03cda92f466232c10e64239f 100644
(file)
--- a/
drivers/clk/clk-si5341.c
+++ b/
drivers/clk/clk-si5341.c
@@
-895,10
+895,8
@@
static int si5341_output_clk_set_rate(struct clk_hw *hw, unsigned long rate,
r[0] = r_div ? (r_div & 0xff) : 1;
r[1] = (r_div >> 8) & 0xff;
r[2] = (r_div >> 16) & 0xff;
-
err =
regmap_bulk_write(output->data->regmap,
+
return
regmap_bulk_write(output->data->regmap,
SI5341_OUT_R_REG(output), r, 3);
-
- return 0;
}
static int si5341_output_reparent(struct clk_si5341_output *output, u8 index)