Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SMA1303: Remove the I2C Retry property in devicetree

It's necessary to set the value for each device, so remove that.

Signed-off-by: Kiseok Jo <kiseok.jo@irondevice.com>
Link: https://lore.kernel.org/r/20230208092420.5037-5-kiseok.jo@irondevice.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kiseok Jo and committed by
Mark Brown
1edc70c3 55194032

+1 -15
+1 -15
sound/soc/codecs/sma1303.c
··· 1621 1621 } 1622 1622 1623 1623 if (np) { 1624 - if (!of_property_read_u32(np, "i2c-retry", &value)) { 1625 - if (value > 50 || value <= 0) { 1626 - sma1303->retry_cnt = SMA1303_I2C_RETRY_COUNT; 1627 - dev_dbg(&client->dev, "%s : %s\n", __func__, 1628 - "i2c-retry out of range (up to 50)"); 1629 - } else { 1630 - sma1303->retry_cnt = value; 1631 - dev_dbg(&client->dev, "%s : %s = %u\n", 1632 - __func__, "i2c-retry count", value); 1633 - } 1634 - } else { 1635 - dev_dbg(&client->dev, "%s : %s = %d\n", __func__, 1636 - "i2c-retry count", SMA1303_I2C_RETRY_COUNT); 1637 - sma1303->retry_cnt = SMA1303_I2C_RETRY_COUNT; 1638 - } 1639 1624 if (!of_property_read_u32(np, "tdm-slot-rx", &value)) { 1640 1625 dev_dbg(&client->dev, 1641 1626 "tdm slot rx is '%d' from DT\n", value); ··· 1718 1733 sma1303->last_ocp_val = 0x08; 1719 1734 sma1303->last_over_temp = 0xC0; 1720 1735 sma1303->tsdw_cnt = 0; 1736 + sma1303->retry_cnt = SMA1303_I2C_RETRY_COUNT; 1721 1737 1722 1738 sma1303->dev = &client->dev; 1723 1739 sma1303->kobj = &client->dev.kobj;