Skip to content

Commit

Permalink
reset: amlogic: make parameters unsigned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerome Brunet authored and Philipp Zabel committed Oct 1, 2024
1 parent 58d1d13 commit ee64998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/reset/reset-meson.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ee64998

Please sign in to comment.