freebsd-nq/sys/dev/uart
Warner Losh 329e817fcc Reapply, with minor tweaks, r338025, from the original commit:
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).
Approved by: re (glen)
2018-09-26 17:12:14 +00:00
..
uart_bus_acpi.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_bus_ebus.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_bus_fdt.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_bus_isa.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_bus_pccard.c Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
uart_bus_pci.c Recognize the Amazon PCI serial device found in i3.metal EC2 instances 2018-09-24 22:15:04 +00:00
uart_bus_puc.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_bus_scc.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_bus.h add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_core.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_cpu_acpi.h add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
uart_cpu_arm64.c add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +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 snps IP uart support / genaralize UART 2018-08-19 21:10: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 add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +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 add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +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