Re: [PATCH] iio: adc: mediatek: fix unset field

2020-10-18 Thread Fabien Parent
Hi Jonathan, On Sun, Oct 18, 2020 at 12:07 PM Jonathan Cameron wrote: > > On Tue, 13 Oct 2020 17:37:12 +0200 > Matthias Brugger wrote: > > > On 12/10/2020 21:46, Fabien Parent wrote: > > > dev_comp field is used in a couple of places but it is never set. This > > > results in kernel oops when

Re: [PATCH] iio: adc: mediatek: fix unset field

2020-10-18 Thread Jonathan Cameron
On Tue, 13 Oct 2020 17:37:12 +0200 Matthias Brugger wrote: > On 12/10/2020 21:46, Fabien Parent wrote: > > dev_comp field is used in a couple of places but it is never set. This > > results in kernel oops when dereferencing a NULL pointer. Set the > > `dev_comp` field correctly in the probe

Re: [PATCH] iio: adc: mediatek: fix unset field

2020-10-13 Thread Matthias Brugger
On 12/10/2020 21:46, Fabien Parent wrote: dev_comp field is used in a couple of places but it is never set. This results in kernel oops when dereferencing a NULL pointer. Set the `dev_comp` field correctly in the probe function. Fixes: 6d97024dce23 ("iio: adc: mediatek: mt6577-auxadc, add

[PATCH] iio: adc: mediatek: fix unset field

2020-10-12 Thread Fabien Parent
dev_comp field is used in a couple of places but it is never set. This results in kernel oops when dereferencing a NULL pointer. Set the `dev_comp` field correctly in the probe function. Fixes: 6d97024dce23 ("iio: adc: mediatek: mt6577-auxadc, add mt6765 support") Signed-off-by: Fabien Parent