[PATCH 0/2] iio: st_pressure: st_accel: Fix initialization of platform_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 7383d44b added a pointer pdata which gets initialized with
the default platform_data when non was defined. But it did not
pass this pointer to the st_sensors_init_sensor call but still
used the maybe uninitialized platform_data from dev.

This breaks initialization when no platform_data is given and
the optional st,drdy-int-pin devicetree option is not set.

As pdata was not used at all after this a subsequent commit
removed the setting of pdata. As it is needed to fix this the
first patch reverts that commit.

Michael Nosthoff (2):
iio: accel: Revert "iio: accel: st_accel: remove redundant pointer pdata"
  iio: st_pressure: st_accel: pass correct platform data to init

 drivers/iio/accel/st_accel_core.c       | 7 ++++++-
 drivers/iio/pressure/st_pressure_core.c | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux