On Tue, Feb 07, 2023 at 06:10:10PM +0100, Niklas Söderlund wrote: > The callback operations are modified on a driver global level. If one > device tree description do not define interrupts, the set_trips() > operation was disabled globally for all users of the driver. > > Fix this by creating a device local copy of the operations structure and > modify the copy depending on what the device can do. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> I like this! Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature