Module Name: src Committed By: skrll Date: Wed Jan 17 07:05:35 UTC 2024
Modified Files: src/sys/arch/riscv/starfive: jh7100_clkc.h Log Message: Fix types of constants To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/starfive/jh7100_clkc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/riscv/starfive/jh7100_clkc.h diff -u src/sys/arch/riscv/starfive/jh7100_clkc.h:1.1 src/sys/arch/riscv/starfive/jh7100_clkc.h:1.2 --- src/sys/arch/riscv/starfive/jh7100_clkc.h:1.1 Tue Jan 16 09:06:46 2024 +++ src/sys/arch/riscv/starfive/jh7100_clkc.h Wed Jan 17 07:05:35 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: jh7100_clkc.h,v 1.1 2024/01/16 09:06:46 skrll Exp $ */ +/* $NetBSD: jh7100_clkc.h,v 1.2 2024/01/17 07:05:35 skrll Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -49,8 +49,8 @@ #define JH7100_CLK_INT_MASK __BITS(7, 0) /* fractional divider min/max */ -#define JH7100_CLK_FRAC_MIN 100 -#define JH7100_CLK_FRAC_MAX (26600 - 1) +#define JH7100_CLK_FRAC_MIN 100UL +#define JH7100_CLK_FRAC_MAX (26600UL - 1) struct jh7100_clkc_softc; struct jh7100_clkc_clk;