linux-stable/drivers/usb/phy
Lee Jones e5892ea815 usb: phy: twl6030: Remove snprintf() from sysfs call-backs and replace with sysfs_emit()
Since snprintf() has the documented, but still rather strange trait of
returning the length of the data that *would have been* written to the
array if space were available, rather than the arguably more useful
length of data *actually* written, it is usually considered wise to use
something else instead in order to avoid confusion.

In the case of sysfs call-backs, new wrappers exist that do just that.

Link: https://lwn.net/Articles/69419/
Link: https://github.com/KSPP/linux/issues/105
Cc: Hema HK <hemahk@ti.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20231213164246.1021885-12-lee@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-15 13:55:30 +01:00
..
Kconfig usb: phy: remove phy-isp1301-omap driver 2023-01-12 10:53:11 +01:00
Makefile usb: phy: remove phy-isp1301-omap driver 2023-01-12 10:53:11 +01:00
of.c
phy-ab8500-usb.c usb: phy: ab8500: Convert to platform remove callback returning void 2023-03-23 17:35:27 +01:00
phy-am335x-control.c
phy-am335x-control.h
phy-am335x.c usb: phy: am335x: Convert to platform remove callback returning void 2023-03-23 17:35:27 +01:00
phy-fsl-usb.c usb: phy: fsl: Convert to platform remove callback returning void 2023-03-23 17:35:27 +01:00
phy-fsl-usb.h
phy-generic.c usb: phy: generic: add suspend support for regulator 2023-11-23 12:32:43 +00:00
phy-generic.h
phy-gpio-vbus-usb.c usb: phy: gpio-vbus: Convert to platform remove callback returning void 2023-03-23 17:35:27 +01:00
phy-isp1301.c usb: Switch i2c drivers back to use .probe() 2023-05-29 15:53:11 +01:00
phy-keystone.c usb: phy: keystone: Convert to platform remove callback returning void 2023-03-23 17:35:27 +01:00
phy-mv-usb.c usb: phy: mv: Convert to platform remove callback returning void 2023-03-23 17:35:27 +01:00
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: disconnect line when USB charger is attached 2023-07-25 18:24:17 +02:00
phy-omap-otg.c extcon: Fix extcon_get_extcon_dev() error handling 2022-05-13 17:03:40 +09:00
phy-tahvo.c usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe() 2023-05-29 15:49:16 +01:00
phy-tegra-usb.c usb: Explicitly include correct DT includes 2023-07-25 18:20:02 +02:00
phy-twl6030-usb.c usb: phy: twl6030: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() 2023-12-15 13:55:30 +01:00
phy-ulpi-viewport.c
phy-ulpi.c
phy.c driver core: make struct device_type.uevent() take a const * 2023-01-27 13:45:36 +01:00