summaryrefslogtreecommitdiff
path: root/drivers/counter
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-08-06 11:03:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-08-06 11:03:41 +0200
commit2c30f9745625a0dd4dda28d9f088d486374827c4 (patch)
treeed15924bd92d8bc07ca51275c89ce3e6435cfb6f /drivers/counter
parent6ffecfe0805e8811e7637e8f381b6740a3e9767b (diff)
parentf1a3a9946aab611dd2200c01ff122f64b033dad2 (diff)
downloadlinux-next-2c30f9745625a0dd4dda28d9f088d486374827c4.tar.gz
linux-next-2c30f9745625a0dd4dda28d9f088d486374827c4.zip
Merge tag 'counter-fixes-for-7.2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/wbg/counter into char-misc-linus
William writes: Counter fixes for 7.2 A fix for microchip-tcb-capture to read the devicetree "reg" cell into a u32 variable to match the expected data type. * tag 'counter-fixes-for-7.2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/wbg/counter: counter: microchip-tcb-capture: Fix DT channel validation
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/microchip-tcb-capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/counter/microchip-tcb-capture.c b/drivers/counter/microchip-tcb-capture.c
index 19d457ae4c3b..e53a8390756b 100644
--- a/drivers/counter/microchip-tcb-capture.c
+++ b/drivers/counter/microchip-tcb-capture.c
@@ -483,7 +483,7 @@ static int mchp_tc_probe(struct platform_device *pdev)
char clk_name[7];
struct regmap *regmap;
struct clk *clk[3];
- int channel;
+ u32 channel;
int ret, i;
counter = devm_counter_alloc(&pdev->dev, sizeof(*priv));
@@ -517,7 +517,7 @@ static int mchp_tc_probe(struct platform_device *pdev)
priv->channel[i] = channel;
- snprintf(clk_name, sizeof(clk_name), "t%d_clk", channel);
+ snprintf(clk_name, sizeof(clk_name), "t%u_clk", channel);
clk[i] = of_clk_get_by_name(np->parent, clk_name);
if (IS_ERR(clk[i])) {