Skip to content

Commit c55cdc5

Browse files
rikardfalkeborntorvalds
authored andcommitted
const_structs.checkpatch: add frequently used ops structs
Add commonly used structs (>50 instances) which are always or almost always const. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Rikard Falkeborn <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b8709bc commit c55cdc5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/const_structs.checkpatch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,61 @@ driver_info
1212
drm_connector_funcs
1313
drm_encoder_funcs
1414
drm_encoder_helper_funcs
15+
dvb_frontend_ops
16+
dvb_tuner_ops
1517
ethtool_ops
1618
extent_io_ops
19+
fb_ops
1720
file_lock_operations
1821
file_operations
1922
hv_ops
23+
hwmon_ops
24+
ib_device_ops
2025
ide_dma_ops
2126
ide_port_ops
27+
ieee80211_ops
28+
iio_buffer_setup_ops
2229
inode_operations
2330
intel_dvo_dev_ops
2431
irq_domain_ops
2532
item_operations
2633
iwl_cfg
2734
iwl_ops
35+
kernel_param_ops
2836
kgdb_arch
2937
kgdb_io
3038
kset_uevent_ops
3139
lock_manager_operations
3240
machine_desc
3341
microcode_ops
3442
mlxsw_reg_info
43+
mtd_ooblayout_ops
3544
mtrr_ops
45+
nand_controller_ops
3646
neigh_ops
3747
net_device_ops
48+
nft_expr_ops
3849
nlmsvc_binding
3950
nvkm_device_chip
4051
of_device_id
4152
pci_raw_ops
4253
phy_ops
54+
pinconf_ops
4355
pinctrl_ops
4456
pinmux_ops
4557
pipe_buf_operations
4658
platform_hibernation_ops
4759
platform_suspend_ops
60+
proc_ops
4861
proto_ops
62+
pwm_ops
4963
regmap_access_table
5064
regulator_ops
65+
reset_control_ops
5166
rpc_pipe_ops
5267
rtc_class_ops
5368
sd_desc
69+
sdhci_ops
5470
seq_operations
5571
sirfsoc_padmux
5672
snd_ac97_build_ops
@@ -67,6 +83,13 @@ uart_ops
6783
usb_mon_operations
6884
v4l2_ctrl_ops
6985
v4l2_ioctl_ops
86+
v4l2_subdev_core_ops
87+
v4l2_subdev_internal_ops
88+
v4l2_subdev_ops
89+
v4l2_subdev_pad_ops
90+
v4l2_subdev_video_ops
91+
vb2_ops
7092
vm_operations_struct
7193
wacom_features
94+
watchdog_ops
7295
wd_ops

0 commit comments

Comments
 (0)