Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/pcf857x: Move compile time check to compilation unit
This allows including the header without using the module. Obviously, calls to the functions provided by the header won't like without using the module. But including the header can still be useful for e.g.: if (IS_USED(MODULE_PCF857x)) { /* make use of the module */ } In the above example all calls to pcf857x functions would be optimized out when the module is not used, full compile checks happen in either case.
- Loading branch information