mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
iio: imu: inv_icm42600: fix build error
Icm42600 was backported from upstream kernel. Let icm24600 adopt kernel version 4.19 with minimal changes. Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com> Change-Id: I5d4717bdd2e8d04732015d01a9587868165fea9a
This commit is contained in:
committed by
Tao Huang
parent
419a3fb68e
commit
054b699457
@@ -362,7 +362,7 @@ extern const struct regmap_config inv_icm42600_regmap_config;
|
||||
extern const struct dev_pm_ops inv_icm42600_pm_ops;
|
||||
|
||||
const struct iio_mount_matrix *
|
||||
inv_icm42600_get_mount_matrix(const struct iio_dev *indio_dev,
|
||||
inv_icm42600_get_mount_matrix(struct iio_dev *indio_dev,
|
||||
const struct iio_chan_spec *chan);
|
||||
|
||||
uint32_t inv_icm42600_odr_to_period(enum inv_icm42600_odr odr);
|
||||
|
||||
@@ -90,10 +90,10 @@ static const struct inv_icm42600_hw inv_icm42600_hw[INV_CHIP_NB] = {
|
||||
};
|
||||
|
||||
const struct iio_mount_matrix *
|
||||
inv_icm42600_get_mount_matrix(const struct iio_dev *indio_dev,
|
||||
inv_icm42600_get_mount_matrix(struct iio_dev *indio_dev,
|
||||
const struct iio_chan_spec *chan)
|
||||
{
|
||||
const struct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);
|
||||
struct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);
|
||||
|
||||
return &st->orientation;
|
||||
}
|
||||
@@ -592,7 +592,7 @@ int inv_icm42600_core_probe(struct regmap *regmap, int chip, int irq,
|
||||
st->chip = chip;
|
||||
st->map = regmap;
|
||||
|
||||
ret = iio_read_mount_matrix(dev, "mount-matrix", &st->orientation);
|
||||
ret = of_iio_read_mount_matrix(dev, "mount-matrix", &st->orientation);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to retrieve mounting matrix %d\n", ret);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user