net: txgbe: fix i2c dev name cannot match clkdev
authorDuanqiang Wen <duanqiangwen@net-swift.com>
Tue, 2 Apr 2024 02:18:43 +0000 (10:18 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Apr 2024 02:21:04 +0000 (19:21 -0700)
commitc644920ce9220d83e070f575a4df711741c07f07
tree5c764fcb4dccd256b464179f5bac99ddaa02194b
parent22c5e0bc1daf7b0538d72248278e898c5090ec43
net: txgbe: fix i2c dev name cannot match clkdev

txgbe clkdev shortened clk_name, so i2c_dev info_name
also need to shorten. Otherwise, i2c_dev cannot initialize
clock.

Fixes: e30cef001da2 ("net: txgbe: fix clk_name exceed MAX_DEV_ID limits")
Signed-off-by: Duanqiang Wen <duanqiangwen@net-swift.com>
Link: https://lore.kernel.org/r/20240402021843.126192-1-duanqiangwen@net-swift.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c