]> git.dujemihanovic.xyz Git - u-boot.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)
commitdb89e72302d099f74856f00b918e4e33a6ddf248
treea5fccaf252ab849402769057a9124841a71b0ff1
parent209ee95611d1f77b341f68a79f94d07cd657667e
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