Title: [6505] trunk/drivers/input/misc/adxl34x.c: [#5146] Develop Linux driver for ADXL345/346 Three-Axis Digital Accelerometers: Fix CC warning
- Revision
- 6505
- Author
- hennerich
- Date
- 2009-05-30 10:06:56 -0500 (Sat, 30 May 2009)
Log Message
[#5146] Develop Linux driver for ADXL345/346 Three-Axis Digital Accelerometers: Fix CC warning
Modified Paths
Diff
Modified: trunk/drivers/input/misc/adxl34x.c (6504 => 6505)
--- trunk/drivers/input/misc/adxl34x.c 2009-05-29 16:38:17 UTC (rev 6504)
+++ trunk/drivers/input/misc/adxl34x.c 2009-05-30 15:06:56 UTC (rev 6505)
@@ -181,7 +181,7 @@
#define ADXL346_3D_TOP 1 /* +Z */
#define ADXL346_3D_BOTTOM 6 /* -Z */
-#define ADXL_DEBUG
+#undef ADXL_DEBUG
#if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE)
typedef struct spi_device bus_device;
@@ -441,7 +441,6 @@
return sprintf(buf, "%u\n", ac->disabled);
}
-
static ssize_t adxl34x_disable_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
@@ -869,7 +868,7 @@
}
static int adxl34x_i2c_smbus_write(struct i2c_client *client,
- unsigned char reg, int val)
+ unsigned char reg, unsigned char val)
{
return i2c_smbus_write_byte_data(client, reg, val);
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits