+ drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update
has been added to the -mm tree.  Its filename is
     drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update
From: "Datta, Shubhrajyoti" <shubhrajyoti@xxxxxx>

- Optimize the wait time for the pressure sensor
- Definition of long is arch dependent so make it u32.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@xxxxxx>
Cc: Christoph Mair <christoph.mair@xxxxxxxxx>
Cc: Jonathan Cameron <jic23@xxxxxxxxx>
Cc: Stefan Schmidt <stefan@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/misc/bmp085.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/misc/bmp085.c~drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update drivers/misc/bmp085.c
--- a/drivers/misc/bmp085.c~drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update
+++ a/drivers/misc/bmp085.c
@@ -60,7 +60,7 @@ struct bmp085_data {
 	u32 raw_temperature;
 	u32 raw_pressure;
 	unsigned char oversampling_setting;
-	unsigned long last_temp_measurement;
+	u32 last_temp_measurement;
 	s32 b6; /* calculated temperature correction coefficient */
 };
 
@@ -144,7 +144,7 @@ static s32 bmp085_update_raw_pressure(st
 	}
 
 	/* wait for the end of conversion */
-	msleep(2+(3 << data->oversampling_setting<<1));
+	msleep(2+(3 << data->oversampling_setting ));
 
 	/* copy data into a u32 (4 bytes), but skip the first byte. */
 	status = i2c_smbus_read_i2c_block_data(data->client,
_

Patches currently in -mm which might be from shubhrajyoti@xxxxxx are

linux-next.patch
drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec.patch
drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-fix.patch
drivers-misc-support-for-the-pressure-sensor-bmp085-from-bosch-sensortec-update.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux