-
Notifications
You must be signed in to change notification settings - Fork 846
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: dac: cf_axi_dds: Protect against unimplemented callbacks
Make sure that the conv->read(), conv->write(), conv->read_raw() or conv->write_raw() are implemented before calling them. This fixes kernel oopses when used alongside the AD9783 driver, which does not provide these implementations. Signed-off-by: Paul Cercueil <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters