diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2024-09-10 18:32:45 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2024-10-01 10:40:32 +0200 |
commit | ee64998610329653d12866bedc941b6f045ee29f (patch) | |
tree | 90cad7e20157a3ce3a8d0695506347ae9e609e0c /drivers/reset | |
parent | 58d1d138db3243f1b102c0ae2848738d443abf97 (diff) | |
download | lwn-ee64998610329653d12866bedc941b6f045ee29f.tar.gz lwn-ee64998610329653d12866bedc941b6f045ee29f.zip |
reset: amlogic: make parameters unsigned
register count and offset cannot be negative. Use unsigned integer
for this.
Suggested-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240910-meson-rst-aux-v5-3-60be62635d3e@baylibre.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/reset-meson.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 848c2d88503e..50bd2241ef2f 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -17,8 +17,8 @@ #include <linux/types.h> struct meson_reset_param { - int reg_count; - int level_offset; + unsigned int reg_count; + unsigned int level_offset; }; struct meson_reset { |