mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
Revert "ASoC: soc-card: Add storage for PCI SSID"
This reverts commit bc443a199f which is
commit 47f56e38a199bd45514b8e0142399cba4feeaf1a upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: I1eb28bbeaad153856f124ef007fa5834012c2aba
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -40,43 +40,6 @@ int snd_soc_card_add_dai_link(struct snd_soc_card *card,
|
||||
void snd_soc_card_remove_dai_link(struct snd_soc_card *card,
|
||||
struct snd_soc_dai_link *dai_link);
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
static inline void snd_soc_card_set_pci_ssid(struct snd_soc_card *card,
|
||||
unsigned short vendor,
|
||||
unsigned short device)
|
||||
{
|
||||
card->pci_subsystem_vendor = vendor;
|
||||
card->pci_subsystem_device = device;
|
||||
card->pci_subsystem_set = true;
|
||||
}
|
||||
|
||||
static inline int snd_soc_card_get_pci_ssid(struct snd_soc_card *card,
|
||||
unsigned short *vendor,
|
||||
unsigned short *device)
|
||||
{
|
||||
if (!card->pci_subsystem_set)
|
||||
return -ENOENT;
|
||||
|
||||
*vendor = card->pci_subsystem_vendor;
|
||||
*device = card->pci_subsystem_device;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else /* !CONFIG_PCI */
|
||||
static inline void snd_soc_card_set_pci_ssid(struct snd_soc_card *card,
|
||||
unsigned short vendor,
|
||||
unsigned short device)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int snd_soc_card_get_pci_ssid(struct snd_soc_card *card,
|
||||
unsigned short *vendor,
|
||||
unsigned short *device)
|
||||
{
|
||||
return -ENOENT;
|
||||
}
|
||||
#endif /* CONFIG_PCI */
|
||||
|
||||
/* device driver data */
|
||||
static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
|
||||
void *data)
|
||||
|
||||
@@ -894,17 +894,6 @@ struct snd_soc_card {
|
||||
#ifdef CONFIG_DMI
|
||||
char dmi_longname[80];
|
||||
#endif /* CONFIG_DMI */
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
/*
|
||||
* PCI does not define 0 as invalid, so pci_subsystem_set indicates
|
||||
* whether a value has been written to these fields.
|
||||
*/
|
||||
unsigned short pci_subsystem_vendor;
|
||||
unsigned short pci_subsystem_device;
|
||||
bool pci_subsystem_set;
|
||||
#endif /* CONFIG_PCI */
|
||||
|
||||
char topology_shortname[32];
|
||||
|
||||
struct device *dev;
|
||||
|
||||
Reference in New Issue
Block a user