summaryrefslogtreecommitdiffstats
path: root/drivers/iio/amplifiers/hmc425a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/amplifiers/hmc425a.c')
-rw-r--r--drivers/iio/amplifiers/hmc425a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/amplifiers/hmc425a.c b/drivers/iio/amplifiers/hmc425a.c
index 9efa692151f0..16c0a77f6a1c 100644
--- a/drivers/iio/amplifiers/hmc425a.c
+++ b/drivers/iio/amplifiers/hmc425a.c
@@ -192,7 +192,7 @@ static int hmc425a_probe(struct platform_device *pdev)
return -ENOMEM;
st = iio_priv(indio_dev);
- st->type = (enum hmc425a_type)of_device_get_match_data(&pdev->dev);
+ st->type = (uintptr_t)of_device_get_match_data(&pdev->dev);
st->chip_info = &hmc425a_chip_info_tbl[st->type];
indio_dev->num_channels = st->chip_info->num_channels;