ubnt-ledbar: adapt for kernel v6.6 #15443
Merged
+1
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Linux kernel commit torvalds/linux@b8a1a4c added a temporary probe_new member to struct i2c_driver, to drop the rarely used second parameter of the probe function and not break API for out of tree drivers. With torvalds/linux@5eb1e6e, which is part of v6.6, this probe_new member is dropped and the signature of the probe function is updated.
ubnt-ledbar is used by the mediatek and ramips targets and both have been updated to v6.6, so adapt the probe function signature and remove other compat code for versions before v6.6.