OSDN Git Service

soc: bcm: brcmstb: add stubs for getting platform IDs
authorRafał Miłecki <rafal@milecki.pl>
Thu, 14 Jan 2021 10:53:18 +0000 (11:53 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 20 Jan 2021 20:07:23 +0000 (12:07 -0800)
commit149ae80b1d50e7db5ac7df1cdf0820017b70e716
tree201f1556ce8577eb080b1bb082bfdef042535a90
parent8bcac4011ebe0dbdd46fd55b036ee855c95702d3
soc: bcm: brcmstb: add stubs for getting platform IDs

Some brcmstb drivers may be shared with other SoC families. E.g. the
same USB PHY block is shared by brcmstb and BCM4908.

To avoid building brcmstb common code on non-brcmstb platforms we need
stubs for:
1. brcmstb_get_family_id()
2. brcmstb_get_product_id()
(to avoid "undefined reference to" errors).

With this change PHY_BRCM_USB will not have to unconditionally select
SOC_BRCMSTB anymore.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
include/linux/soc/brcmstb/brcmstb.h