Select the types of activity you want to include in your feed.
ASoC: drop bogus container_of() error handling
Merge series from Johan Hovold <johan@kernel.org>:
The dev_to_sdw_dev() helper uses container_of() to return the containing soundwire device structure of its pointer argument and will never return NULL.
···1533153315341534 pm4125->sdw_priv[AIF1_CAP] = dev_get_drvdata(pm4125->txdev);15351535 pm4125->sdw_priv[AIF1_CAP]->pm4125 = pm4125;15361536-15371536 pm4125->tx_sdw_dev = dev_to_sdw_dev(pm4125->txdev);15381538- if (!pm4125->tx_sdw_dev) {15391539- dev_err(dev, "could not get txslave with matching of dev\n");15401540- ret = -EINVAL;15411541- goto error_put_tx;15421542- }1543153715441538 /*15451539 * As TX is the main CSR reg interface, which should not be suspended first.
-5
sound/soc/codecs/wcd937x.c
···27632763 wcd937x->sdw_priv[AIF1_CAP] = dev_get_drvdata(wcd937x->txdev);27642764 wcd937x->sdw_priv[AIF1_CAP]->wcd937x = wcd937x;27652765 wcd937x->tx_sdw_dev = dev_to_sdw_dev(wcd937x->txdev);27662766- if (!wcd937x->tx_sdw_dev) {27672767- dev_err(dev, "could not get txslave with matching of dev\n");27682768- ret = -EINVAL;27692769- goto err_put_txdev;27702770- }2771276627722767 /*27732768 * As TX is the main CSR reg interface, which should not be suspended first.
-4
sound/soc/sdw_utils/soc_sdw_utils.c
···14141414 }1415141514161416 slave = dev_to_sdw_dev(sdw_dev);14171417- if (!slave) {14181418- ret = -EINVAL;14191419- goto put_device;14201420- }1421141714221418 /* Make sure BIOS provides SDCA properties */14231419 if (!slave->sdca_data.interface_revision) {