diff options
author | Robert Kmiec <robert.r.kmiec@gmail.com> | 2015-12-03 18:54:48 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-12-05 12:28:31 -0500 |
commit | ec0096f853fef46000c80bb3fd035d8376d957ac (patch) | |
tree | a2677a0df7f7fabf21720e58a4a41f75ecac6f2c /drivers/iio | |
parent | 366e65633cf4f117609965cd6e189f2cd11533d2 (diff) |
iio: st_accel_core: Remove unneeded define
Definition of ST_SENSORS_WAI_ADDRESS was introduced within a very
first commit of this driver, but it was never used.
This address is already defined as ST_SENSORS_DEFAULT_WAI_ADDRESS
in include/linux/iio/common/st_sensors.h
To avoid duplication of the same constant in two different places
called almost exactly the same, the one which was never used
should be removed.
Signed-off-by: Robert Kmiec <robert.r.kmiec@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/common/st_sensors/st_sensors_core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iio/common/st_sensors/st_sensors_core.c b/drivers/iio/common/st_sensors/st_sensors_core.c index 25258e2c1a82..8447c31e27f2 100644 --- a/drivers/iio/common/st_sensors/st_sensors_core.c +++ b/drivers/iio/common/st_sensors/st_sensors_core.c | |||
@@ -18,9 +18,6 @@ | |||
18 | #include <asm/unaligned.h> | 18 | #include <asm/unaligned.h> |
19 | #include <linux/iio/common/st_sensors.h> | 19 | #include <linux/iio/common/st_sensors.h> |
20 | 20 | ||
21 | |||
22 | #define ST_SENSORS_WAI_ADDRESS 0x0f | ||
23 | |||
24 | static inline u32 st_sensors_get_unaligned_le24(const u8 *p) | 21 | static inline u32 st_sensors_get_unaligned_le24(const u8 *p) |
25 | { | 22 | { |
26 | return (s32)((p[0] | p[1] << 8 | p[2] << 16) << 8) >> 8; | 23 | return (s32)((p[0] | p[1] << 8 | p[2] << 16) << 8) >> 8; |