]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: tipd: drop second firmware name read
authorJavier Carrasco <javier.carrasco@wolfvision.net>
Thu, 6 Jun 2024 09:03:55 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2024 17:30:16 +0000 (19:30 +0200)
commit5315052d3c6fa7d2d6a8795276bf89c8c2a6f600
tree7bf2e75fc75cbfc922c43e32f7067aadb6d92a1c
parent38935f3366801355ac64731d8df1c6bb5d6609ee
usb: typec: tipd: drop second firmware name read

tps_request_firmware() reads the firmware name and there is no need to
repeat the action in the device-specific implementations of the firmware
update mechanism.

Provide the firmware name as a parameter in tps_request_firmware() to
avoid repetitive operations in the device-specific implementations.

Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240606-tps6598x_fw_update_log-v1-1-2b5b8369a0ba@wolfvision.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c