On Wed, Dec 19, 2018 at 11:41:20PM -0700, Parav Pandit wrote: > I looked at this during v0 version. Couldn't do it because both issm > and umad devices have their ibdev and port files and they are part > of single structure. So container_of() from the device cannot teach > back to umad_device as offsets for two devices are different. > Creating another structure and storing umad_device structure pointer > is not worth overhead. umad and issm don't share code, do they? I would expect to do the appropriate container_of for each struct device? Jason