Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ethernet: adi: make name member of struct adin1110_cfg a pointer

Primary reason for this change is to remove the misuse of MDIO_NAME_SIZE
here, so that this constant can be removed in a follow-up patch.
Use case here is simply a chip name w/o any relationship to a MDIO
device. Also there's no need to reserve a longer char array, so make
the name a pointer.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/61bc14fa-eed3-43b6-ae40-b98063e81578@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Heiner Kallweit and committed by
Paolo Abeni
f7aa2ef1 fae1c659

+1 -1
+1 -1
drivers/net/ethernet/adi/adin1110.c
··· 123 123 124 124 struct adin1110_cfg { 125 125 enum adin1110_chips_id id; 126 - char name[MDIO_NAME_SIZE]; 126 + const char *name; 127 127 u32 phy_ids[PHY_MAX_ADDR]; 128 128 u32 ports_nr; 129 129 u32 phy_id_val;