Vishal Verma wrote: > Introduce a guard(device) macro to lock a 'struct device', and unlock it > automatically when going out of scope using Scope Based Resource > Management semantics. A lot of the sysfs attribute writes in > drivers/dax/bus.c benefit from a cleanup using these, so change these > where applicable. > > Cc: Joao Martins <[email protected]> > Suggested-by: Dan Williams <[email protected]> > Signed-off-by: Vishal Verma <[email protected]> >
Reviewed-by: Ira Weiny <[email protected]>

