aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/light/adjd_s311.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c
index e4851427d72f..1cbb449b319a 100644
--- a/drivers/iio/light/adjd_s311.c
+++ b/drivers/iio/light/adjd_s311.c
@@ -185,7 +185,7 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
185 } 185 }
186 186
187 if (indio_dev->scan_timestamp) 187 if (indio_dev->scan_timestamp)
188 *(s64 *)((phys_addr_t)data->buffer + ALIGN(len, sizeof(s64))) 188 *(s64 *)((u8 *)data->buffer + ALIGN(len, sizeof(s64)))
189 = time_ns; 189 = time_ns;
190 iio_push_to_buffer(buffer, (u8 *)data->buffer, time_ns); 190 iio_push_to_buffer(buffer, (u8 *)data->buffer, time_ns);
191 191