On Fri, Aug 25, 2023 at 04:51:41PM +0300, Andy Shevchenko wrote:
...
> +static inline int acpi_add_fadt(struct acpi_ctx *ctx, struct acpi_fadt *fadt)
> +{
> + acpi_add_table(ctx, fadt);
> + acpi_inc(ctx, sizeof(struct acpi_fadt));
> + return 0;
> +}
Ideally it should be like
Recent approach with FADT writer shows that there is
a room for subtle errors. Prevent this from happening
again by introducing acpi_add_fadt() helper.
Signed-off-by: Andy Shevchenko
---
arch/x86/cpu/apollolake/acpi.c | 6 +-
arch/x86/cpu/baytrail/acpi.c | 6 +-
2 matches
Mail list logo