Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: SOF: refine and unify sof_xxx_priv structs #31

Merged
merged 2 commits into from
Jul 16, 2018

Commits on Jul 13, 2018

  1. ASoC: SOF: refine and unify sof_xxx_priv structs

    All sof_pci_priv, sof_acpi_priv and sof_spi_priv are exactly same
    structs, here unify them and put it to sof-priv.h.
    
    Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
    keyonjie committed Jul 13, 2018
    Configuration menu
    Copy the full SHA
    e661ee8 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2018

  1. ASoC: SOF: remove superfluous parent device pointers of snd_sof_pdata

    We had pointers for parent device of snd_sof_pdata, pci for pci_dev,
    pdev for platform_device, and spi for spi_device (intended to but not
    added yet). All of these can be retrieved from parent dev via
    container_of(), so they are actually superfluous.
    
    Here remove these pointers to kinds of parent devices, add an enum
    sof_device_type and simplify the initialization of snd_sof_dev->parent
    correspondingly.
    
    Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
    keyonjie committed Jul 16, 2018
    Configuration menu
    Copy the full SHA
    68c1721 View commit details
    Browse the repository at this point in the history