On 9/3/22 12:40, Eugene Shalygin wrote:
I don't understand why that works either. Maybe it interferes with other
PNP0C09 devices and/or the code in drivers/acpi/ec.c.
Turns out the patch breaks sensors on a system where it should provide
output. The module gets loaded but provides no output (which should
mean the probe code is not executed). I will try to investigate
tomorrow.
Couple of comments:
- You'll need to drop __init.
- No need or reason to rename asus_ec_sensors_platform_driver
to asus_ec_sensors_platform_driver_probe.
That's in order to not drop __init.
What does the name of the struct platform_driver data structure
have to do with __init ?
Thanks,
Guenter