Skip to contentSkip to conversation

const_structs.checkpatch: add device_type

PATCH Applied Ricardo B. Marliere 2 participants 2 messages Feb 18, 2024 – Feb 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 const_structs.checkpatch: add device_type

Since commit aed65af1cc2f ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Make sure that new usages of the struct already enter the tree as const.

Cc Andrew Morton <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 scripts/const_structs.checkpatch | 1 +
 1 file changed, 1 insertion(+)
scripts/const_structs.checkpatch +1 -0
index 188412aa2757..5227f34a1b4f 100644
@@ -7,6 +7,7 @@ comedi_lrange
 component_ops
 dentry_operations
 dev_pm_ops
+device_type
 dma_map_ops
 driver_info
 drm_connector_funcs

---
base-commit: 4f5e5092fdbf5cec6bedc19fbe69cce4f5f08372
change-id: 20240218-device_cleanup-checkpatch-0757f924f00e

Best regards,

Signature · 1 line
Ricardo B. Marliere <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Ricardo B. Marliere

Since commit aed65af1cc2f ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Make sure that new usages of the struct already enter the tree as const.

Cc Andrew Morton <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 scripts/const_structs.checkpatch | 1 +
 1 file changed, 1 insertion(+)
scripts/const_structs.checkpatch +0 -0
index 188412aa2757..5227f34a1b4f 100644

scripts/const_structs.checkpatch comedi_lrange

Quoted 9 lines
scripts/const_structs.checkpatch +1 -1
@@ -7,6 +7,7 @@ comedi_lrange
 component_ops
 dentry_operations
 dev_pm_ops
+device_type
 dma_map_ops
 driver_info
 drm_connector_funcs
 
---