iio: adc: stm32-adc: Use dev_fwnode()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 12 Jun 2025 08:46:27 +0000 (10:46 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 26 Jun 2025 18:32:53 +0000 (19:32 +0100)
commita8daa0a8f13d8f2d96f4f06dd5ce5454afc88835
tree6c1e1db2dfcda48c035b9d001ff683ddc4710214
parent5cc26087667a00b6e64217634aecfe18112225b9
iio: adc: stm32-adc: Use dev_fwnode()

irq_domain_create_simple() takes fwnode as the first argument. It can be
extracted from the struct device using dev_fwnode() helper instead of
using of_node with of_fwnode_handle().

So use the dev_fwnode() helper.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250612084627.217341-1-jirislaby@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc-core.c