freebsd-dev/sys/dev/uart
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
..
uart_bus_acpi.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
uart_bus_ebus.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_bus_fdt.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_bus_isa.c Create a new ISA_PNP_INFO macro. Use this macro every where we have 2017-12-23 06:49:27 +00:00
uart_bus_pccard.c Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
uart_bus_pci.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_bus_puc.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_bus_scc.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_bus.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_core.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_cpu_acpi.h
uart_cpu_arm64.c Check all entries in the ACPI uart compat table and not just the first. 2018-02-26 08:45:38 +00:00
uart_cpu_fdt.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_cpu_fdt.h
uart_cpu_powerpc.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_cpu_sparc64.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_cpu_x86.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_cpu.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dbg.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dev_imx.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dev_imx.h
uart_dev_msm.c Support for UART device found in Qualcomm Snapdragon 410E SoC. 2018-01-18 17:43:32 +00:00
uart_dev_msm.h UART Clock Selection Register holds a divider value for a supplied clock, 2018-01-18 18:19:31 +00:00
uart_dev_mu.c Add a driver for the BCM2835 Mini-UART as seen on the RPi3 2018-06-12 13:26:31 +00:00
uart_dev_mvebu.c Disable EARLY_PRINTF from the Armada 3700 uart, it breaks when we want 2018-02-01 15:05:17 +00:00
uart_dev_ns8250.c Add busy detect quirk to list of console options 2018-07-22 23:32:21 +00:00
uart_dev_ns8250.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dev_pl011.c The Arm pl011 driver assumes it's running a devicetree based system. 2018-02-28 15:02:27 +00:00
uart_dev_quicc.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dev_sab82532.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dev_snps.c Now that we set the busy_detect bit in the bas to support setting it 2018-07-23 19:27:11 +00:00
uart_dev_ti8250.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_dev_z8530.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_if.m
uart_kbd_sun_tables.h
uart_kbd_sun.c Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
uart_kbd_sun.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uart_ppstypes.h
uart_subr.c Add busy detect quirk to list of console options 2018-07-22 23:32:21 +00:00
uart_tty.c add support for console resuming, implement it for uart, use on x86 2018-05-29 16:16:24 +00:00
uart.h Add busy detect quirk to list of console options 2018-07-22 23:32:21 +00:00