]> git.baikalelectronics.ru Git - uboot.git/commit
ide: Move setting of vendor strings into ide_probe()
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:44 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:06 +0000 (13:51 -0400)
commitabbaaf26e21795763f6348f56fc1686a6fff9b05
treea5fccaf252ab849402769057a9124841a71b0ff1
parent5600e0fa77ddb0279ece40e9b2884a2af421cbc8
ide: Move setting of vendor strings into ide_probe()

The current implementation adds this information in the block device's
probe() function, which is called in the blk_probe_or_unbind() in
ide_probe().

It is simpler to do this in ide_probe() itself, since the effect is the
same. This helps to consolidate use of ide_dev_desc[] which we would like
to remove.

Use strlcpy() to keep checkpatch happy.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ide.c