Skip to content

Commit

Permalink
drivers: adc: tla2021: Raise default initialization priority
Browse files Browse the repository at this point in the history
The TLA2021 driver depends on it's i2c controller and therefore needs
to be initialized later. ADC_INIT_PRIORITY by default equals
KERNEL_INIT_PRIORITY_DEVICE which should be used by independent devices.
Using this by default causing projects to fail where this driver is
enabled implicitly through board configuration and the priority is not
explicitly set.

Signed-off-by: Caspar Friedrich <[email protected]>
  • Loading branch information
casparfriedrich authored and henrikbrixandersen committed Jan 24, 2024
1 parent 7eb0aa0 commit 8a2a44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/adc/Kconfig.tla2021
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if ADC_TLA2021

config ADC_TLA2021_INIT_PRIORITY
int "Priority for the driver initialization"
default ADC_INIT_PRIORITY
default 80
help
Fine tune the priority for the driver initialization. Make sure it's
higher (-> lower priority) than I2C_INIT_PRIORITY.
Expand Down

0 comments on commit 8a2a44f

Please sign in to comment.