Re: Device match data and DT compatible string fallback
From: Wolfram Sang <wsa@kernel.org>
Date: 2021-06-28 15:55:32
Attachments
- signature.asc [application/pgp-signature] 833 bytes
From: Wolfram Sang <wsa@kernel.org>
Date: 2021-06-28 15:55:32
I could fix this in the driver by calling of_device_get_match_data() in the probe function with dev->of_node is not NULL, but I feel this is really an issue that should be handled by the framework. Has anyone ever given it a thought ?
The of entries should also have .data entries and use that. The driver could also be converted to probe_new to become independent of the i2c_device_id.