freebsd-dev/sys/dev/usb
Conrad Meyer faa319436f Remove unused and easy to misuse PNP macro parameter
Inspired by r338025, just remove the element size parameter to the
MODULE_PNP_INFO macro entirely.  The 'table' parameter is now required to
have correct pointer (or array) type.  Since all invocations of the macro
already had this property and the emitted PNP data continues to include the
element size, there is no functional change.

Mostly done with the coccinelle 'spatch' tool:

  $ cat modpnpsize0.cocci
    @normaltables@
    identifier b,c;
    expression a,d,e;
    declarer MODULE_PNP_INFO;
    @@
     MODULE_PNP_INFO(a,b,c,d,
    -sizeof(d[0]),
     e);

    @singletons@
    identifier b,c,d;
    expression a;
    declarer MODULE_PNP_INFO;
    @@
     MODULE_PNP_INFO(a,b,c,&d,
    -sizeof(d),
     1);

  $ rg -l MODULE_PNP_INFO -- sys | \
    xargs spatch --in-place --sp-file modpnpsize0.cocci

(Note that coccinelle invokes diff(1) via a PATH search and expects diff to
tolerate the -B flag, which BSD diff does not.  So I had to link gdiff into
PATH as diff to use spatch.)

Tinderbox'd (-DMAKE_JUST_KERNELS).
2018-08-19 00:22:21 +00:00
..
controller Remove Atmel AT91RM9200 and AT91SAM9 support. 2018-07-27 18:28:22 +00:00
gadget
input evdev: Remove evdev.ko linkage dependency on kbd driver 2018-08-13 19:05:53 +00:00
misc
net Add USB ID for rebranded RTL8153 found on NVIDIA Jetson TX1 board. 2018-08-13 07:28:25 +00:00
quirk Add new USB quirk. 2018-02-13 08:13:20 +00:00
serial Add support for SIMCom SIM7600E. 2018-06-05 05:19:04 +00:00
storage Add SPDX identifiers to linux_ptrace.c and cfumass.c. 2018-01-24 17:04:01 +00:00
template Set bDeviceClass properly for composite device (template 8). There should 2018-06-01 09:17:20 +00:00
video
wlan run(4): Support the D-Link DWA-125 rev A3 2018-07-21 14:56:15 +00:00
ufm_ioctl.h
uftdiio.h
uled_ioctl.h
usb_bus.h
usb_busdma.c
usb_busdma.h
usb_cdc.h
usb_controller.h
usb_core.c
usb_core.h
usb_debug.c
usb_debug.h
usb_dev.c
usb_dev.h
usb_device.c Change the default USB template from the current 0 to -1. The reason 2018-05-28 18:34:16 +00:00
usb_device.h
usb_dynamic.c
usb_dynamic.h
usb_endian.h
usb_error.c
usb_freebsd_loader.h
usb_freebsd.h
usb_generic.c
usb_generic.h
usb_handle_request.c
usb_hid.c Raise "Report Count" value limit in HID descriptor parser. 2018-07-21 14:20:17 +00:00
usb_hub.c Revert redundant parts of r329440 after recent devmatch(8) changes. 2018-02-17 12:38:46 +00:00
usb_hub.h
usb_if.m
usb_ioctl.h Add a "multifunction" device side USB template, which provides mass 2018-05-17 19:54:11 +00:00
usb_lookup.c Remove unused bus_autoconf section from usb.ko. 2018-02-17 14:44:03 +00:00
usb_mbuf.c
usb_mbuf.h
usb_msctest.c
usb_msctest.h
usb_parse.c
usb_pci.h
usb_pf.c
usb_pf.h
usb_process.c
usb_process.h
usb_request.c Improve the kernel's USB descriptor reading function. 2018-06-27 12:08:12 +00:00
usb_request.h
usb_transfer.c
usb_transfer.h
usb_util.c
usb_util.h
usb.h
usbdevs Add USB ID for rebranded RTL8153 found on NVIDIA Jetson TX1 board. 2018-08-13 07:28:25 +00:00
usbdi_util.h
usbdi.h Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
usbhid.h