[PATCH 07/15] iio: adc: at91-sama5d2_adc: add temp init function as callback
Andy Shevchenko
andy.shevchenko at gmail.com
Mon Aug 4 06:13:24 PDT 2025
On Mon, Aug 4, 2025 at 12:03 PM Varshini Rajendran
<varshini.rajendran at microchip.com> wrote:
>
> Adding the temperature sensor init function as a callback function.
> The temperature sensor initialisation sequence is handled differently
> for each platform. The same is added to the platform data of the
> corresponding device. This allows us to handle new devices like
> sama7d65.
...
> +struct at91_adc_state;
> +static int at91_adc_temp_sensor_init(struct at91_adc_state *st,
> + struct device *dev);
Isn't it possible to avoid forward declaration for the function?
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list