summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/mt6360-adc.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-02-15 16:34:47 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-11 20:47:13 +0000
commitb923561fabc33664b25470b101857712339e1021 (patch)
tree3a2dbf8dd705c18dcb0c2b68cb2f09d09f41508c /drivers/iio/adc/mt6360-adc.c
parent15aacc980dcb326ef33dfc32772faea1067f9178 (diff)
iio: adc: mt6360: Include right header
To get access to the big endian byte order parsing helpers drivers need to include <asm/unaligned.h> and nothing else. Cc: Gene Chen <gene_chen@richtek.com> Suggested-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20210215153447.48457-1-linus.walleij@linaro.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/mt6360-adc.c')
-rw-r--r--drivers/iio/adc/mt6360-adc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c
index f57db3056fbe..6b39a139ce28 100644
--- a/drivers/iio/adc/mt6360-adc.c
+++ b/drivers/iio/adc/mt6360-adc.c
@@ -9,13 +9,14 @@
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
-#include <linux/unaligned/be_byteshift.h>
#include <linux/iio/buffer.h>
#include <linux/iio/iio.h>
#include <linux/iio/trigger_consumer.h>
#include <linux/iio/triggered_buffer.h>
+#include <asm/unaligned.h>
+
#define MT6360_REG_PMUCHGCTRL3 0x313
#define MT6360_REG_PMUADCCFG 0x356
#define MT6360_REG_PMUADCIDLET 0x358