History

const_structs.checkpatch: add frequently used ops structs

Add commonly used structs (>50 instances) which are always or almost always const.

Rikard Falkeborn committed 4 years ago

Commit c55cdc51 parent b8709bc1 file · +23 −0Browse files

Showing the changes to scripts/const_structs.checkpatch (1 of 1 file). Show all

Unified · Split

scripts/const_structs.checkpatch+23−0
@@ -12,19 +12,27 @@ driver_info · 11 unmodified lines
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
@@ -32,25 +40,33 @@ lock_manager_operations · 1 unmodified line
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 · 10 unmodified lines
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