trivial script to update MAINTAINERS directory patterns

From: Joe Perches
Date: Wed Jun 26 2019 - 13:04:14 EST


Almost all directory file patterns in MAINTAINERS end with a trailing /.
There are some directory file patterns that do not.
It'd be nice to update those without the trailing / properly.

At some point, it'd be good to run:

$ git grep -h "^[FX]:" MAINTAINERS | \
cut -f2- | grep -vP '/$|\*|\?|\[' | \
while read file ; do \
if [ -d $file ]; then \
sed -i -e "s@${file}\$@${file}/@" MAINTAINERS ; \
fi ; \
done

Today this produces on -next:
---
MAINTAINERS | 106 ++++++++++++++++++++++++++++++------------------------------
1 file changed, 53 insertions(+), 53 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 720741afc0ef..3946fafb712b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -369,7 +369,7 @@ M: Sudeep Holla <sudeep.holla@xxxxxxx>
L: linux-acpi@xxxxxxxxxxxxxxx
L: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers)
S: Maintained
-F: drivers/acpi/arm64
+F: drivers/acpi/arm64/

ACPI I2C MULTI INSTANTIATE DRIVER
M: Hans de Goede <hdegoede@xxxxxxxxxx>
@@ -1054,7 +1054,7 @@ L: devel@xxxxxxxxxxxxxxxxxxxx
L: dri-devel@xxxxxxxxxxxxxxxxxxxxx
L: linaro-mm-sig@xxxxxxxxxxxxxxxx (moderated for non-subscribers)
S: Supported
-F: drivers/staging/android/ion
+F: drivers/staging/android/ion/
F: drivers/staging/android/uapi/ion.h

AOA (Apple Onboard Audio) ALSA DRIVER
@@ -1436,10 +1436,10 @@ M: Jesper Nilsson <jesper.nilsson@xxxxxxxx>
M: Lars Persson <lars.persson@xxxxxxxx>
S: Maintained
L: linux-arm-kernel@xxxxxxxx
-F: arch/arm/mach-artpec
+F: arch/arm/mach-artpec/
F: arch/arm/boot/dts/artpec6*
-F: drivers/clk/axis
-F: drivers/crypto/axis
+F: drivers/clk/axis/
+F: drivers/crypto/axis/
F: drivers/pinctrl/pinctrl-artpec*
F: Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt

@@ -1593,7 +1593,7 @@ F: drivers/clk/sirf/
F: drivers/clocksource/timer-prima2.c
F: drivers/clocksource/timer-atlas7.c
N: [^a-z]sirf
-X: drivers/gnss
+X: drivers/gnss/

ARM/EBSA110 MACHINE SUPPORT
M: Russell King <linux@xxxxxxxxxxxxxxx>
@@ -2283,7 +2283,7 @@ M: Orson Zhai <orsonzhai@xxxxxxxxx>
M: Baolin Wang <baolin.wang@xxxxxxxxxx>
M: Chunyan Zhang <zhang.lyra@xxxxxxxxx>
S: Maintained
-F: arch/arm64/boot/dts/sprd
+F: arch/arm64/boot/dts/sprd/
N: sprd

ARM/STI ARCHITECTURE
@@ -2757,7 +2757,7 @@ M: Bradley Grove <linuxdrivers@xxxxxxxxxxxx>
L: linux-scsi@xxxxxxxxxxxxxxx
W: http://www.attotech.com
S: Supported
-F: drivers/scsi/esas2r
+F: drivers/scsi/esas2r/

ATUSB IEEE 802.15.4 RADIO DRIVER
M: Stefan Schmidt <stefan@xxxxxxxxxxxxxxxxxx>
@@ -2865,7 +2865,7 @@ S: Maintained
F: drivers/video/backlight/
F: include/linux/backlight.h
F: include/linux/pwm_backlight.h
-F: Documentation/devicetree/bindings/leds/backlight
+F: Documentation/devicetree/bindings/leds/backlight/

BATMAN ADVANCED
M: Marek Lindner <mareklindner@xxxxxxxxxxxxx>
@@ -2907,7 +2907,7 @@ L: linux-media@xxxxxxxxxxxxxxx
T: git git://linuxtv.org/media_tree.git
W: https://linuxtv.org
S: Supported
-F: drivers/media/platform/sti/bdisp
+F: drivers/media/platform/sti/bdisp/

BECKHOFF CX5020 ETHERCAT MASTER DRIVER
M: Dariusz Marcinkiewicz <reksio@xxxxxxxxxx>
@@ -3137,7 +3137,7 @@ L: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers)
T: git git://github.com/anholt/linux
S: Maintained
N: bcm2835
-F: drivers/staging/vc04_services
+F: drivers/staging/vc04_services/

BROADCOM BCM47XX MIPS ARCHITECTURE
M: Hauke Mehrtens <hauke@xxxxxxxxxx>
@@ -3694,7 +3694,7 @@ T: git git://linuxtv.org/media_tree.git
W: http://linuxtv.org
S: Supported
F: Documentation/media/kapi/cec-core.rst
-F: Documentation/media/uapi/cec
+F: Documentation/media/uapi/cec/
F: drivers/media/cec/
F: drivers/media/rc/keymaps/rc-cec.c
F: include/media/cec.h
@@ -4361,7 +4361,7 @@ M: Karen Xie <kxie@xxxxxxxxxxx>
L: linux-scsi@xxxxxxxxxxxxxxx
W: http://www.chelsio.com
S: Supported
-F: drivers/scsi/cxgbi/cxgb3i
+F: drivers/scsi/cxgbi/cxgb3i/

CXGB3 IWARP RNIC DRIVER (IW_CXGB3)
M: Potnuri Bharat Teja <bharat@xxxxxxxxxxx>
@@ -4376,7 +4376,7 @@ M: Atul Gupta <atul.gupta@xxxxxxxxxxx>
L: linux-crypto@xxxxxxxxxxxxxxx
W: http://www.chelsio.com
S: Supported
-F: drivers/crypto/chelsio
+F: drivers/crypto/chelsio/

CXGB4 ETHERNET DRIVER (CXGB4)
M: Vishal Kulkarni <vishal@xxxxxxxxxxx>
@@ -4390,7 +4390,7 @@ M: Karen Xie <kxie@xxxxxxxxxxx>
L: linux-scsi@xxxxxxxxxxxxxxx
W: http://www.chelsio.com
S: Supported
-F: drivers/scsi/cxgbi/cxgb4i
+F: drivers/scsi/cxgbi/cxgb4i/

CXGB4 IWARP RNIC DRIVER (IW_CXGB4)
M: Potnuri Bharat Teja <bharat@xxxxxxxxxxx>
@@ -4623,7 +4623,7 @@ L: linux-media@xxxxxxxxxxxxxxx
T: git git://linuxtv.org/media_tree.git
W: https://linuxtv.org
S: Supported
-F: drivers/media/platform/sti/delta
+F: drivers/media/platform/sti/delta/

DENALI NAND DRIVER
M: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
@@ -4908,7 +4908,7 @@ DOCUMENTATION/ITALIAN
M: Federico Vaga <federico.vaga@xxxxxxxxxx>
L: linux-doc@xxxxxxxxxxxxxxx
S: Maintained
-F: Documentation/translations/it_IT
+F: Documentation/translations/it_IT/

DONGWOON DW9714 LENS VOICE COIL DRIVER
M: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
@@ -4937,7 +4937,7 @@ DPAA2 DATAPATH I/O (DPIO) DRIVER
M: Roy Pledge <Roy.Pledge@xxxxxxx>
L: linux-kernel@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/soc/fsl/dpio
+F: drivers/soc/fsl/dpio/

DPAA2 ETHERNET DRIVER
M: Ioana Radulescu <ruxandra.radulescu@xxxxxxx>
@@ -4954,7 +4954,7 @@ M: Ioana Radulescu <ruxandra.radulescu@xxxxxxx>
M: Ioana Ciornei <ioana.ciornei@xxxxxxx>
L: linux-kernel@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/staging/fsl-dpaa2/ethsw
+F: drivers/staging/fsl-dpaa2/ethsw/

DPT_I2O SCSI RAID DRIVER
M: Adaptec OEM Raid Solutions <aacraid@xxxxxxxxxxxxx>
@@ -5393,7 +5393,7 @@ M: Vincent Abriou <vincent.abriou@xxxxxx>
L: dri-devel@xxxxxxxxxxxxxxxxxxxxx
T: git git://anongit.freedesktop.org/drm/drm-misc
S: Maintained
-F: drivers/gpu/drm/sti
+F: drivers/gpu/drm/sti/
F: Documentation/devicetree/bindings/display/st,stih4xx.txt

DRM DRIVERS FOR STM
@@ -5404,7 +5404,7 @@ M: Vincent Abriou <vincent.abriou@xxxxxx>
L: dri-devel@xxxxxxxxxxxxxxxxxxxxx
T: git git://anongit.freedesktop.org/drm/drm-misc
S: Maintained
-F: drivers/gpu/drm/stm
+F: drivers/gpu/drm/stm/
F: Documentation/devicetree/bindings/display/st,stm32-ltdc.txt

DRM DRIVERS FOR TI LCDC
@@ -6092,7 +6092,7 @@ EZchip NPS platform support
M: Vineet Gupta <vgupta@xxxxxxxxxxxx>
M: Ofer Levi <oferle@xxxxxxxxxxxx>
S: Supported
-F: arch/arc/plat-eznps
+F: arch/arc/plat-eznps/
F: arch/arc/boot/dts/eznps.dts

F2FS FILE SYSTEM
@@ -6405,13 +6405,13 @@ FREESCALE QORIQ DPAA ETHERNET DRIVER
M: Madalin Bucur <madalin.bucur@xxxxxxx>
L: netdev@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/net/ethernet/freescale/dpaa
+F: drivers/net/ethernet/freescale/dpaa/

FREESCALE QORIQ DPAA FMAN DRIVER
M: Madalin Bucur <madalin.bucur@xxxxxxx>
L: netdev@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/net/ethernet/freescale/fman
+F: drivers/net/ethernet/freescale/fman/
F: Documentation/devicetree/bindings/net/fsl-fman.txt

FREESCALE QORIQ PTP CLOCK DRIVER
@@ -6722,9 +6722,9 @@ M: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
L: linux-kernel@xxxxxxxxxxxxxxx
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/vdso
S: Maintained
-F: lib/vdso
+F: lib/vdso/
F: kernel/time/vsyscall.c
-F: include/vdso
+F: include/vdso/
F: include/asm-generic/vdso/vsyscall.h

GENWQE (IBM Generic Workqueue Card)
@@ -7087,7 +7087,7 @@ M: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx>
M: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>
L: linux-rdma@xxxxxxxxxxxxxxx
S: Supported
-F: drivers/infiniband/hw/hfi1
+F: drivers/infiniband/hw/hfi1/

HFS FILESYSTEM
L: linux-fsdevel@xxxxxxxxxxxxxxx
@@ -7206,7 +7206,7 @@ HISILICON PMU DRIVER
M: Shaokun Zhang <zhangshaokun@xxxxxxxxxxxxx>
W: http://www.hisilicon.com
S: Supported
-F: drivers/perf/hisilicon
+F: drivers/perf/hisilicon/
F: Documentation/perf/hisi-pmu.txt

HISILICON ROCE DRIVER
@@ -7333,7 +7333,7 @@ L: linux-media@xxxxxxxxxxxxxxx
T: git git://linuxtv.org/media_tree.git
W: https://linuxtv.org
S: Supported
-F: drivers/media/platform/sti/hva
+F: drivers/media/platform/sti/hva/

HWPOISON MEMORY FAILURE HANDLING
M: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>
@@ -7361,7 +7361,7 @@ F: arch/x86/include/asm/mshyperv.h
F: arch/x86/include/asm/trace/hyperv.h
F: arch/x86/include/asm/hyperv-tlfs.h
F: arch/x86/kernel/cpu/mshyperv.c
-F: arch/x86/hyperv
+F: arch/x86/hyperv/
F: drivers/hid/hid-hyperv.c
F: drivers/hv/
F: drivers/input/serio/hyperv-keyboard.c
@@ -7526,7 +7526,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux.git
S: Maintained
F: Documentation/ABI/testing/sysfs-bus-i3c
F: Documentation/devicetree/bindings/i3c/
-F: Documentation/driver-api/i3c
+F: Documentation/driver-api/i3c/
F: drivers/i3c/
F: include/linux/i3c/

@@ -7715,7 +7715,7 @@ F: Documentation/networking/ieee802154.rst
IFE PROTOCOL
M: Yotam Gigi <yotam.gi@xxxxxxxxx>
M: Jamal Hadi Salim <jhs@xxxxxxxxxxxx>
-F: net/ife
+F: net/ife/
F: include/net/ife.h
F: include/uapi/linux/ife.h

@@ -8460,7 +8460,7 @@ L: linux-rdma@xxxxxxxxxxxxxxx
L: target-devel@xxxxxxxxxxxxxxx
S: Supported
W: http://www.linux-iscsi.org
-F: drivers/infiniband/ulp/isert
+F: drivers/infiniband/ulp/isert/

ISDN/mISDN SUBSYSTEM
M: Karsten Keil <isdn@xxxxxxxxxxxxxx>
@@ -8468,8 +8468,8 @@ L: isdn4linux@xxxxxxxxxxxxxxxxxxxxxx (subscribers-only)
L: netdev@xxxxxxxxxxxxxxx
W: http://www.isdn4linux.de
S: Maintained
-F: drivers/isdn/mISDN
-F: drivers/isdn/hardware
+F: drivers/isdn/mISDN/
+F: drivers/isdn/hardware/

ISDN/CAPI SUBSYSTEM
M: Karsten Keil <isdn@xxxxxxxxxxxxxx>
@@ -8890,7 +8890,7 @@ L3MDEV
M: David Ahern <dsa@xxxxxxxxxxxxxxxxxxx>
L: netdev@xxxxxxxxxxxxxxx
S: Maintained
-F: net/l3mdev
+F: net/l3mdev/
F: include/net/l3mdev.h

L7 BPF FRAMEWORK
@@ -8917,8 +8917,8 @@ LANTIQ MIPS ARCHITECTURE
M: John Crispin <john@xxxxxxxxxxx>
L: linux-mips@xxxxxxxxxxxxxxx
S: Maintained
-F: arch/mips/lantiq
-F: drivers/soc/lantiq
+F: arch/mips/lantiq/
+F: drivers/soc/lantiq/

LAPB module
L: linux-x25@xxxxxxxxxxxxxxx
@@ -9155,7 +9155,7 @@ F: drivers/rtc/rtc-opal.c
F: drivers/scsi/ibmvscsi/
F: drivers/tty/hvc/hvc_opal.c
F: drivers/watchdog/wdrtas.c
-F: tools/testing/selftests/powerpc
+F: tools/testing/selftests/powerpc/
N: /pmac
N: powermac
N: powernv
@@ -10368,7 +10368,7 @@ MICROCHIP AUDIO ASOC DRIVERS
M: Codrin Ciubotariu <codrin.ciubotariu@xxxxxxxxxxxxx>
L: alsa-devel@xxxxxxxxxxxxxxxx (moderated for non-subscribers)
S: Supported
-F: sound/soc/atmel
+F: sound/soc/atmel/

MICROCHIP DMA DRIVER
M: Ludovic Desroches <ludovic.desroches@xxxxxxxxxxxxx>
@@ -11277,7 +11277,7 @@ M: Pavel Machek <pavel@xxxxxx>
M: Sakari Ailus <sakari.ailus@xxxxxx>
L: linux-media@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/media/i2c/et8ek8
+F: drivers/media/i2c/et8ek8/
F: drivers/media/i2c/ad5820.c

NOKIA N900 POWER SUPPLY DRIVERS
@@ -11418,7 +11418,7 @@ NXP SJA1105 ETHERNET SWITCH DRIVER
M: Vladimir Oltean <olteanv@xxxxxxxxx>
L: linux-kernel@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/net/dsa/sja1105
+F: drivers/net/dsa/sja1105/

NXP TDA998X DRM DRIVER
M: Russell King <linux@xxxxxxxxxxxxxxx>
@@ -11442,7 +11442,7 @@ M: Clément Perrochaud <clement.perrochaud@xxxxxxxxxxxx>
R: Charles Gorand <charles.gorand@xxxxxxxxxxxx>
L: linux-nfc@xxxxxxxxxxxx (moderated for non-subscribers)
S: Supported
-F: drivers/nfc/nxp-nci
+F: drivers/nfc/nxp-nci/

OBJAGG
M: Jiri Pirko <jiri@xxxxxxxxxxxx>
@@ -11808,7 +11808,7 @@ M: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>
M: Niranjana Vishwanathapura <niranjana.vishwanathapura@xxxxxxxxx>
L: linux-rdma@xxxxxxxxxxxxxxx
S: Supported
-F: drivers/infiniband/ulp/opa_vnic
+F: drivers/infiniband/ulp/opa_vnic/

OPEN FIRMWARE AND DEVICE TREE OVERLAYS
M: Pantelis Antoniou <pantelis.antoniou@xxxxxxxxxxxx>
@@ -12851,7 +12851,7 @@ F: drivers/block/ps3vram.c
PSAMPLE PACKET SAMPLING SUPPORT:
M: Yotam Gigi <yotam.gi@xxxxxxxxx>
S: Maintained
-F: net/psample
+F: net/psample/
F: include/net/psample.h
F: include/uapi/linux/psample.h

@@ -13224,7 +13224,7 @@ M: Avinash Patil <avinashp@xxxxxxxxxxxxx>
M: Sergey Matyukevich <smatyukevich@xxxxxxxxxxxxx>
L: linux-wireless@xxxxxxxxxxxxxxx
S: Maintained
-F: drivers/net/wireless/quantenna
+F: drivers/net/wireless/quantenna/

RADEON and AMDGPU DRM DRIVERS
M: Alex Deucher <alexander.deucher@xxxxxxx>
@@ -13290,7 +13290,7 @@ RALINK MIPS ARCHITECTURE
M: John Crispin <john@xxxxxxxxxxx>
L: linux-mips@xxxxxxxxxxxxxxx
S: Maintained
-F: arch/mips/ralink
+F: arch/mips/ralink/

RALINK RT2X00 WIRELESS LAN DRIVER
P: rt2x00 project
@@ -13348,7 +13348,7 @@ R: Lai Jiangshan <jiangshanlai@xxxxxxxxx>
L: rcu@xxxxxxxxxxxxxxx
S: Supported
T: git git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev
-F: tools/testing/selftests/rcutorture
+F: tools/testing/selftests/rcutorture/

RDC R-321X SoC
M: Florian Fainelli <florian@xxxxxxxxxxx>
@@ -13365,7 +13365,7 @@ M: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>
M: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx>
L: linux-rdma@xxxxxxxxxxxxxxx
S: Supported
-F: drivers/infiniband/sw/rdmavt
+F: drivers/infiniband/sw/rdmavt/

RDS - RELIABLE DATAGRAM SOCKETS
M: Santosh Shilimkar <santosh.shilimkar@xxxxxxxxxx>
@@ -13947,7 +13947,7 @@ M: Robert Baldyga <r.baldyga@xxxxxxxxxxx>
M: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>
L: linux-nfc@xxxxxxxxxxxx (moderated for non-subscribers)
S: Supported
-F: drivers/nfc/s3fwrn5
+F: drivers/nfc/s3fwrn5/

SAMSUNG S5C73M3 CAMERA DRIVER
M: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
@@ -15307,7 +15307,7 @@ F: Documentation/devicetree/bindings/clock/snps,pll-clock.txt
SYNOPSYS ARC SDP platform support
M: Alexey Brodkin <abrodkin@xxxxxxxxxxxx>
S: Supported
-F: arch/arc/plat-axs10x
+F: arch/arc/plat-axs10x/
F: arch/arc/boot/dts/ax*
F: Documentation/devicetree/bindings/arc/axs10*

@@ -17361,7 +17361,7 @@ L: platform-driver-x86@xxxxxxxxxxxxxxx
L: x86@xxxxxxxxxx
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core
S: Maintained
-F: arch/x86/platform
+F: arch/x86/platform/

X86 VDSO
M: Andy Lutomirski <luto@xxxxxxxxxx>
@@ -17379,7 +17379,7 @@ F: lib/idr.c
F: lib/xarray.c
F: include/linux/idr.h
F: include/linux/xarray.h
-F: tools/testing/radix-tree
+F: tools/testing/radix-tree/

XBOX DVD IR REMOTE
M: Benjamin Valentin <benpicco@xxxxxxxxxxxxxx>