Re: [PATCH v3 3/5] staging: iio: isl29018: fixed race condition in in_illuminance_scale_available_show()

2016-10-01 Thread Jonathan Cameron
On 27/09/16 01:20, Brian Masney wrote: > in_illuminance_scale_available_show() references the > isl29018_chip->int_time variable in three places inside a for loop. > The value of the int_time variable can be updated by the > isl29018_set_integration_time() function, which is called by the >

[PATCH v3 3/5] staging: iio: isl29018: fixed race condition in in_illuminance_scale_available_show()

2016-09-26 Thread Brian Masney
in_illuminance_scale_available_show() references the isl29018_chip->int_time variable in three places inside a for loop. The value of the int_time variable can be updated by the isl29018_set_integration_time() function, which is called by the isl29018_write_raw() function. isl29018_write_raw()