Skip to content

Commit c9186a2

Browse files
dlechnunojsa
authored andcommitted
iio: adc: ad7944: fix compile failure due to backport
Fix compile error from backported patch due to missing kernel feature aligned_s64. This patch can be reverted after merging kernel v6.13 as it will no longer be needed. Signed-off-by: David Lechner <dlechner@baylibre.com>
1 parent 8e875f8 commit c9186a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/iio/adc/ad7944.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
#include <linux/iio/trigger_consumer.h>
2828
#include <linux/iio/triggered_buffer.h>
2929

30+
/* ADI tree: remove this after kernel v6.13 */
31+
#ifndef aligned_s64
32+
#define aligned_s64 s64 __attribute__((aligned(8)))
33+
#endif
34+
3035
#define AD7944_INTERNAL_REF_MV 4096
3136

3237
struct ad7944_timing_spec {

0 commit comments

Comments
 (0)