lkml.org 
[lkml]   [2022]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3] hisi_lpc: Use acpi_dev_for_each_child()
From
> Next, I'd look at introducing something like
>
> acpi_create_platform_device_ops(struct acpi_device *adev, const struct
> property_entry *properties, const struct *platform_device_create_ops
> *ops);
>
> where ops would be a set of callbacks to invoke as a matter of customization.
>
> Then, acpi_create_platform_device() can be defined as a wrapper around
> the above.
> .

ok, that seems easiest. But alternatively do you see any scope to have
that platform_device_create_ops * ops in the acpi_device struct (so that
we don't need to create this new API)?

Thanks,
John


\
 
 \ /
  Last update: 2022-07-05 17:17    [W:1.533 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site