Commit ec0096f8 authored by Robert Kmiec's avatar Robert Kmiec Committed by Jonathan Cameron

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: default avatarRobert Kmiec <robert.r.kmiec@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 366e6563
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <linux/iio/common/st_sensors.h> #include <linux/iio/common/st_sensors.h>
#define ST_SENSORS_WAI_ADDRESS 0x0f
static inline u32 st_sensors_get_unaligned_le24(const u8 *p) static inline u32 st_sensors_get_unaligned_le24(const u8 *p)
{ {
return (s32)((p[0] | p[1] << 8 | p[2] << 16) << 8) >> 8; return (s32)((p[0] | p[1] << 8 | p[2] << 16) << 8) >> 8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment