Re: [PATCH] hwmon: lm75: Use zero lm75_type for lm75

2021-01-30 Thread Guenter Roeck
On 1/30/21 2:10 AM, Matwey V. Kornilov wrote: > There is a logical flaw in lm75_probe() function introduced in > > e97a45f1b460 ("hwmon: (lm75) Add OF device ID table") > > Note, that of_device_get_match_data() returns NULL when no match > found. This is the case when OF node exists but has u

Re: [PATCH] hwmon: lm75: Use zero lm75_type for lm75

2021-01-30 Thread Guenter Roeck
On 1/30/21 7:43 AM, Matwey V. Kornilov wrote: > > > сб, 30 янв. 2021 г. в 18:31, Guenter Roeck >: >> >> On 1/30/21 2:10 AM, Matwey V. Kornilov wrote: >> > There is a logical flaw in lm75_probe() function introduced in >> > >> >     e97a45f1b460 ("hwmon: (lm75) Add OF d

[PATCH] hwmon: lm75: Use zero lm75_type for lm75

2021-01-30 Thread Matwey V. Kornilov
There is a logical flaw in lm75_probe() function introduced in e97a45f1b460 ("hwmon: (lm75) Add OF device ID table") Note, that of_device_get_match_data() returns NULL when no match found. This is the case when OF node exists but has unknown compatible line, while the module is still loaded v