On 11/28/21 8:26 PM, Jonathan Cameron wrote:
static int ad5755_probe(struct spi_device *spi)
{
@@ -751,8 +736,8 @@ static int ad5755_probe(struct spi_device *spi)
mutex_init(&st->lock);
- if (spi->dev.of_node)
- pdata = ad5755_parse_dt(&spi->dev);
+ if (dev_fwnode(&spi->dev))
+ pdata = ad5755_parse_fw(&spi->dev);
else
pdata = spi->dev.platform_data;
Considering that it is possible to supply fw_node data through platform
files we as well just completely drop platform_data support. And make
the platform data struct local to this file.