linux/drivers/phy
Kees Cook 69050f8d6d treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-21 01:02:28 -08:00
..
allwinner phy: sun4i-usb: replace use of system_wq with system_percpu_wq 2026-01-14 14:54:17 +05:30
amlogic phy: amlogic: phy-meson-axg-pcie: Fix PHY creation order in axg-pcie probe 2025-04-11 17:07:15 +05:30
apple phy: apple: atc: Reset USB2 PHY during probe as well 2026-01-14 19:45:07 +05:30
broadcom phy: broadcom: ns-usb3: Fix Wvoid-pointer-to-enum-cast warning (again) 2026-01-01 16:29:51 +05:30
cadence phy: cadence-torrent: Add PCIe + XAUI multilink configuration for 100MHz refclk 2026-01-14 15:03:09 +05:30
freescale phy-for-7.0 2026-02-17 11:40:04 -08:00
hisilicon phy: hisilicon: Remove redundant ternary operators 2025-09-01 18:13:54 +05:30
ingenic phy: ingenic: use core driver model helper to handle probe errors 2025-08-20 22:25:38 +05:30
intel phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
lantiq phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
marvell phy: mvebu-cp110-utmi: fix dr_mode property read from dts 2026-01-21 13:26:59 +05:30
mediatek phy: adjust function name reference 2026-01-01 15:55:23 +05:30
microchip phy: sparx5-serdes: make it selectable for ARCH_LAN969X 2025-12-23 22:52:42 +05:30
motorola phy: mapphone-mdm6600: use gpiod_multi_set_value_cansleep 2025-02-17 14:27:34 +01:00
mscc phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
nuvoton phy: nuvoton: add new driver for the Nuvoton MA35 SoC USB 2.0 PHY 2024-08-29 23:52:37 +05:30
qualcomm phy-for-7.0 2026-02-17 11:40:04 -08:00
ralink phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
realtek USB / Thunderbolt (USB4) changes for 6.13-rc1 2024-11-29 11:19:31 -08:00
renesas phy: renesas: rcar-gen3-usb2: add regulator dependency 2026-02-04 20:58:15 +05:30
rockchip phy-for-7.0 2026-02-17 11:40:04 -08:00
samsung phy: exynos5-usbdrd: support SS combo phy for ExynosAutov920 2025-12-23 23:11:05 +05:30
socionext phy: socionext: usb2: Simplify with scoped for each OF child loop 2026-01-14 19:51:14 +05:30
sophgo phy: sophgo: Remove unused of_gpio.h 2025-11-12 20:35:50 +05:30
spacemit phy: spacemit: support K1 USB2.0 PHY controller 2026-01-01 16:25:49 +05:30
st phy: stm32-usphyc: Fix off by one in probe() 2025-12-23 21:53:45 +05:30
starfive phy: starfive: jh7110-usb: Fix USB 2.0 host occasional detection failure 2025-05-14 09:45:12 +01:00
sunplus phy: sunplus: return negative error code in sp_usb_phy_probe 2023-11-27 18:39:18 +05:30
tegra treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
ti phy-for-7.0 2026-02-17 11:40:04 -08:00
xilinx phy-zynqmp: Postpone getting clock rate until actually needed 2025-05-14 09:48:01 +01:00
Kconfig phy: GOOGLE_USB: add TYPEC dependency 2026-02-04 20:47:17 +05:30
Makefile phy: enter drivers/phy/Makefile even without CONFIG_GENERIC_PHY 2026-02-04 20:45:26 +05:30
phy-airoha-pcie-regs.h phy: airoha: Fix REG_CSR_2L_RX{0,1}_REV0 definitions 2024-10-17 20:52:48 +05:30
phy-airoha-pcie.c phy: airoha: Fix REG_CSR_2L_JCPLL_SDM_HREN config in airoha_pcie_phy_init_ssc_jcpll() 2024-10-17 20:52:48 +05:30
phy-can-transceiver.c phy: phy-can-transceiver: Add support for TJA105{1,7} 2025-11-12 20:11:16 +05:30
phy-common-props-test.c phy: add phy_get_rx_polarity() and phy_get_tx_polarity() 2026-01-14 18:16:05 +05:30
phy-common-props.c phy: add phy_get_rx_polarity() and phy_get_tx_polarity() 2026-01-14 18:16:05 +05:30
phy-core-mipi-dphy.c phy: dphy: add support to calculate the timing based on hs_clk_rate 2022-10-27 14:38:04 +03:00
phy-core.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
phy-google-usb.c phy: Add Google Tensor SoC USB PHY driver 2026-01-14 19:56:36 +05:30
phy-lgm-usb.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-lpc18xx-usb-otg.c
phy-nxp-ptn3222.c phy: add NXP PTN3222 eUSB2 to USB2 redriver 2024-10-17 20:48:27 +05:30
phy-pistachio-usb.c
phy-snps-eusb2.c phy-for-6.17 2025-08-01 12:31:50 -07:00
phy-spacemit-k1-pcie.c phy: spacemit: Introduce PCIe/combo PHY 2025-12-23 23:11:03 +05:30
phy-xgene.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30