-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[RFC] API change: Device - Const-ify device driver instances. #24873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
carlescufi
merged 43 commits into
zephyrproject-rtos:master
from
tbursztyka:device_constify
Sep 2, 2020
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
e63414f
drivers: gpio: Use DEVICE_AND_API_INIT for mmio32 driver
542d197
device: Revise how initialization status is being handled
cda302d
userspace: update k_object API to support immutable objects
pabigot 4ee8238
device: Instantiate all device instance as constant
805550d
device: Const-ify all device driver instance pointers
18830f8
doc: Apply constant qualifier on device instance where relevant
ecf9608
drivers: ethernet: Remove ugly usage of a goto in enc*j* drivers
08ad7dd
scripts: coccinelle: Scripts for finding wrong device instance usage
e7993b4
drivers: i2c: Fix device instance const qualifier loss
3b44058
drivers: can: Fix device instance const qualifier loss in MCUX Flexcan
7b70d64
drivers: dma: Fix device instance const qualifier loss in NIOS2 driver
3ec0bcf
drivers: gpio: Fix device instance const qualifier loss
9b3a83d
drivers: watchdog: Remove useless Kconfig entry
e789a5b
drivers: spi: Fix device instance const qualifier loss
8013b2b
drivers: flash: Fix device instance const qualifier loss in NRF QSPI
de63285
drivers: video: Fix device instance const qualifier loss in MCUX CSI
16a9171
drivers: ieee802154: Fix device instance const qualifier loss
a8e9cb9
drivers: ethernet: Fix device instance const qualifier loss
c91b600
drivers: adc: Fix device instance const qualifier loss
7d6142c
drivers: wifi: Fix device instance const qualifier loss in ESP
770a37f
drivers: console: Fix device instance const qualifier loss in IPM driver
8a2d19a
drivers: led: Fix device instance const qualifier loss in HT16K33
d13de5a
drivers: kscan: Fix device instance const qualifier loss
807e7cc
drivers: serial: Fix device instance const qualifier loss
d0c2b82
drivers: sensor: Fix device instance const qualifier loss
5615226
subsys: logging: Fix device instance const qualifier loss
9332488
subsys: net: Fix device instance const qualifier loss in socket tls
63a01d0
subsys: canopen: Add a wrapper to avoid passing device to CO_init
e282d40
samples: Fix device instance const qualifier loss
a853a77
irq: Change offload API to take a constant parameter
bfb48ac
arch: Apply IRQ offload API change
27a392d
kernel: Apply IRQ offload API change
9e6bb3d
tests: Apply IRQ offload API change
3d566ed
irq: Change dynamic API to take a constant parameter
1aa245a
arch: Apply dynamic IRQ API change
191761d
tests: Apply dynamic IRQ API change
2494b6c
boards: Apply IRQ offload API change
8258840
drivers: Apply dynamic IRQ API change
93c63fd
isr: Normalize usage of device instance through ISR
3bee883
tests: uart_asyn: Simplify how the UART device is provided
324ec3d
drivers: Manual const-ification of device driver instance
6c564e5
doc: Add a device qualifier change entry to release-notes for 2.4 ver…
ae19315
west: Update module's revision
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is on the commit titled:
which produced this change. The provided Coccinelle script:
is wrong in two ways:
struct device
to aconst struct device
objectconst
qualifier on the variable declaration.For completeness it should be something like this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure