Re: [PATCH 2/2] iio: st_pressure: st_accel: pass correct platform data to init

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

 



On 2018-03-10 17:29, Jonathan Cameron wrote:
On Fri, 09 Mar 2018 10:02:45 +0100
Michael Nosthoff <committed@xxxxxxxx> wrote:

Commit 7383d44b added a pointer pdata which get set to the default
platform_data when non was defined in the device. 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.

This commit fixes this.

Cc: stable@xxxxxxxxxxxxxxx
Fixes: 7383d44b ("iio: st_pressure: st_accel: Initialise sensor platform
data properly")
Signed-off-by: Michael Nosthoff <committed@xxxxxxxx>
Both patches were corrupted by your email client.  I did the
revert directly and then manually applied this.


Ah, sorry for that. I redid my setup so I hope my next patches will be fine.

Thanks for tracking down the problem.


Happy to help :)

Applied to the fixes-togreg branch of iio.git.

Jonathan


Michael
--
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