drivers: pwm: rv32m1_tpm: Use DT_INST_FOREACH
Convert driver to use DT_INST_FOREACH(TPM_DEVICE) Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
8f0018663f
commit
5dd1a79230
1 changed files with 1 additions and 15 deletions
|
@ -200,18 +200,4 @@ static const struct pwm_driver_api rv32m1_tpm_driver_api = {
|
|||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&rv32m1_tpm_driver_api)
|
||||
|
||||
#if DT_HAS_DRV_INST(0)
|
||||
TPM_DEVICE(0);
|
||||
#endif /* DT_HAS_DRV_INST(0) */
|
||||
|
||||
#if DT_HAS_DRV_INST(1)
|
||||
TPM_DEVICE(1);
|
||||
#endif /* DT_HAS_DRV_INST(1) */
|
||||
|
||||
#if DT_HAS_DRV_INST(2)
|
||||
TPM_DEVICE(2);
|
||||
#endif /* DT_HAS_DRV_INST(2) */
|
||||
|
||||
#if DT_HAS_DRV_INST(3)
|
||||
TPM_DEVICE(3);
|
||||
#endif /* DT_HAS_DRV_INST(3) */
|
||||
DT_INST_FOREACH(TPM_DEVICE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue