Skip to content

Commit

Permalink
misc: bmp085: Use unsigned long to store jiffies
Browse files Browse the repository at this point in the history
This fixes following compilation warning:

drivers/misc/bmp085.c: In function ‘bmp085_get_pressure’:
drivers/misc/bmp085.c:238:4: warning: comparison of distinct pointer
         types lacks a cast [enabled by default]

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Bernhard Walle authored and Greg Kroah-Hartman committed Mar 3, 2012
1 parent 5aa4d20 commit b222258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/bmp085.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct bmp085_data {
u32 raw_temperature;
u32 raw_pressure;
unsigned char oversampling_setting;
u32 last_temp_measurement;
unsigned long last_temp_measurement;
s32 b6; /* calculated temperature correction coefficient */
};

Expand Down

0 comments on commit b222258

Please sign in to comment.