]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: designware: Avoid using static data
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:41 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:08 +0000 (11:44 +0800)
commit8d72d5bf08488ff28a8ed27389dae8a169c39190
tree4dc6096e0d8b7b330eba11cbb9849b562503a30e
parent457df2337fc90431dc60b9b256ac1fdb8809f4cf
i2c: designware: Avoid using static data

Drivers are not allowed to use static data since they may be used in SPL
where BSS is not available.

It is possible that driver model may provide support for numbering devices
in the future. But for now, move this to global_data.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/global_data.h
drivers/i2c/designware_i2c_pci.c