diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-01-31 19:10:12 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-03 08:36:33 +0100 |
commit | 993a28aa48f26da8d7e06ee4c3011c66c47df8c9 (patch) | |
tree | cc1a4c4284eaf5f72b68fd8ae2d770a41edced56 /commands/miitool.c | |
parent | b88381df6ef2930fb6072489b93b1fc31257162a (diff) | |
download | barebox-993a28aa48f26da8d7e06ee4c3011c66c47df8c9.tar.gz barebox-993a28aa48f26da8d7e06ee4c3011c66c47df8c9.tar.xz |
mdio_bus: Change PHY's naming scheme
Change the way PHY devices are named upon creation. This commit replaces
sequentialy numbered "/dev/phy%d" with "/dev/mdio%d-phy%02x". This way
it is significanlty easier to identify which PHY in real-life (e.g. on a
schematic) corresponds to which device in /dev.
Also, replace asprintf with xasprintf to provide some form of memory
allocation failure checking.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/miitool.c')
0 files changed, 0 insertions, 0 deletions