Eduardo Habkost <[email protected]> wrote: > There are multiple functions where OBJECT_GET_CLASS or > OBJECT_CLASS_CHECK are being used directly for > DeviceClass/TYPE_DEVICE, instead of the DEVICE_GET_CLASS or > DEVICE_CLASS wrappers. There's no reason to not use the > wrappers, so use them. > > Signed-off-by: Eduardo Habkost <[email protected]>
Reviewed-by: Juan Quintela <[email protected]> > - DeviceClass *dc = OBJECT_CLASS_CHECK(DeviceClass, list->data, > - TYPE_DEVICE); > + DeviceClass *dc = DEVICE_CLASS(list->data); Finding where DEVICE_CLASS is defined is .... interesting.
