Skip to content

Commit

Permalink
rtc-v3020: make bitfield unsigned
Browse files Browse the repository at this point in the history
Fix sparse warning:

include/linux/rtc-v3020.h:18:23: error: dubious one-bit signed bitfield

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
CC: p_gortmaker@yahoo.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Bill Pemberton authored and Jiri Kosina committed May 11, 2010
1 parent 8356dda commit 758ef74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/rtc-v3020.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
struct v3020_platform_data {
int leftshift; /* (1<<(leftshift)) & readl() */

int use_gpio:1;
unsigned int use_gpio:1;
unsigned int gpio_cs;
unsigned int gpio_wr;
unsigned int gpio_rd;
Expand Down

0 comments on commit 758ef74

Please sign in to comment.