Skip to content

Commit ee64998

Browse files
jbrun3tpH5
authored andcommitted
reset: amlogic: make parameters unsigned
register count and offset cannot be negative. Use unsigned integer for this. Suggested-by: Stephen Boyd <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Philipp Zabel <[email protected]>
1 parent 58d1d13 commit ee64998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/reset/reset-meson.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include <linux/types.h>
1818

1919
struct meson_reset_param {
20-
int reg_count;
21-
int level_offset;
20+
unsigned int reg_count;
21+
unsigned int level_offset;
2222
};
2323

2424
struct meson_reset {

0 commit comments

Comments
 (0)